Could not load the image referenced from a nib in the bundle running on device

后端 未结 30 2095
挽巷
挽巷 2020-12-07 18:24

SplitView[1290:307] Could not load the \"canary04.png\" image referenced from a nib in the bundle with identifier \"xx.co.mycompany.ipad.SplitView\"

30条回答
  •  隐瞒了意图╮
    2020-12-07 19:16

    Solution 1 :

    In my case I had copied folder containing images and even checked "Destination : copy items if needed". However it has not been added to "Copy Bundle Resources" of "Build Phases".

    You can add images as follows :

    1. Select Targets
    2. Select "Build Phases" tab
    3. Select "Copy Bundle Resources"
    4. Click on "+" (Plus) button just beneath it
    5. Locate images and add it

    Screenshot for solution 1

    Solution 2 :

    Delete images by selecting "Move to thrash". Again add images in your project with "Destination : copy items if needed" checked.

    Note : Make sure that you add images in Assets.xcassets folder and not outside it.
    

提交回复
热议问题