Could not load the “” image referenced from a nib

前端 未结 21 2352
广开言路
广开言路 2020-12-23 19:21

I have no images called \"\" (nothing). I\'ve gone through the .xib file of the screen where this pops up and can\'t find anything that would cause this. Anybody who have ha

相关标签:
21条回答
  • 2020-12-23 20:12

    Believe or not, sometimes this happens because some IBOutlet was removed and in the storyboard have the reference to it.

    0 讨论(0)
  • 2020-12-23 20:14

    Very simple remove the image that is not displaying from you project and then clean the project by going to Product--> clean then once again put the image into your project and done. this worked for me.

    0 讨论(0)
  • 2020-12-23 20:14

    This worked for me:

    1- Quit Xcode

    2- Make a copy of your .storyboard for backup.

    3- Open your .storyboard in a text editor and delete image nodes and image node attributes with empty references.

    delete node like this --> <image name=" " .../>
    delete image attributes like this --> <tabBarItem key="tabBarItem" title="untitled" image=" " id="6"/>
    

    4- Save the file
    5- Open your project again in Xcode.
    6- Run Product->Clean
    7- Run your project

    Warning should be gone.

    0 讨论(0)
  • 2020-12-23 20:14

    I got this error from an undo action, simply dropping the image back onto the view controller solved the problem.

    Atb

    0 讨论(0)
  • 2020-12-23 20:14

    Make sure the 'Target Memebership' for the 'Assets.xcassets' has been selected.

    1. Click 'Assets.xcassets'
    2. In the 'File inspector', make sure 'Target Membership' selected.
    0 讨论(0)
  • 2020-12-23 20:16

    I had this warning because of a UITabBarItem. In the attributes inspector for the field "Selected Image" I had a file listed that was also the value for the field "Image". Nevertheless, I received warnings until I made the "Selected Image" field blank.

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