UIButtons doesn't show images in iOS 14

My app works fine in iOS 11, 12 and 13 but not in iOS 14. UIButtons are not showing image backgrounds and Kingfisher doesn't load dynamic images. This error only occurs in iOS 14 and in the version for the app store, when i am debugging in xcode it works fine. i must uncheck "debug executable" to see the error
How do you render images ?
  • automatic

  • original

  • template

Did you put the images in xcassets ? You should probably.

What do you get exactly instead of image ?
May have a look at this:
https://stackoverflow.com/questions/41736520/swift-3-uiimage-when-set-to-template-image-and-changed-tint-color-does-not-show
Hi,

Same problem here. Does anyone have a solution for this issue?
I tested with Xcode 12 on iOS 14 simulator. Works OK.

@Stoneridge: I ask the same questions:
How do you render images ?
  • automatic

  • original

  • template

Did you put the images in xcassets ? You should probably.

What do you get exactly instead of image ? 
Hi @Claude31 ,

I am using images in automatic mode. I have tried original as well, but the same problem happens. Only background images inside UIButton or UITextField are affected, images inside UIImage appears normally.

The most curious for me, is that the debuggable flag on/off affects this behaviour.

Yes, images are in Assets.xcassets.

Instead of the image, I get nothing, it is like there's no background image configured.
Hi @Claude31,

Other thing that I noticed, is that the standard keyboard that appears on text fields, appears without any letters, only a gray background when debug executable flag is disabled. When it's enabled, the keboard is displayed correctly.
@Stoneridge, if I remember well, you should render as original or template.
Hi @Claude31,

I've tried using "Render As" Original and Template as well, but no image appears in the background.
In fact, I have tested with an image in xcAssets, rendered as default.
I use it in a button as background image,
For the View:
  alpha set to 1
  Background : default (empty)

Works without issue.

Do you confirm that the image is in xcassets ?

If so, the problem maybe kingfisher with iOS 14.
Did you ask them ?
UIButtons doesn't show images in iOS 14
 
 
Q