Could not load the “” image referenced from a nib in the bundle with identifier

后端 未结 22 2810
渐次进展
渐次进展 2020-12-01 11:32

when I load my application it shows a warning message that

\"Could not load the \"\" image referenced from a nib in the bundle with identifier \"

相关标签:
22条回答
  • 2020-12-01 12:01

    Had the same issue and none of these answers worked for me. Instead I restarted the mac and iPhone I was working with and then everything started to work fine again.

    0 讨论(0)
  • 2020-12-01 12:02

    I have fetching same issue in xcode 9.

    just tick on target membership

    0 讨论(0)
  • 2020-12-01 12:02

    Look into storyboard file you'll see a question mark icon on any of the imageView (as shown in screenshot below) or UIButton image.
    Just correct it and the warning will be gone.

    Hope this helps

    0 讨论(0)
  • 2020-12-01 12:03

    I had the same issue when I Refactor to Storyboard. Apparently the Asset catalog does not transfer the image reference. To fix, see below:

    You would notice that your ImageViews is empty from reference.

    1 - Click on the ImageView

    2 Go to the Utilities bar where you would see you asset image is unknown

    3 - Change it back to you image asset

    This should fix your error. Hope this helps!

    0 讨论(0)
  • 2020-12-01 12:04

    Xcode9 beta2 release note:

    Jpeg assets in asset catalogs are not found on iOS 10 or earlier for apps built with Xcode 9. APIcalls for accessing the image such as UIImage.imageNamed: return nil. (32524123)

    Workaround: Use png resources or limit app testing to devices running iOS 11 or later.

    Xcode9 beta3 release note:

    Jpeg assets in asset catalogs are found on iOS 10 or earlier for apps built with Xcode 9.(32524123)

    0 讨论(0)
  • 2020-12-01 12:06

    I was facing the same problem, I solve it by deleting folder and create again and past all images then add reference again.

    0 讨论(0)
提交回复
热议问题