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

后端 未结 30 2130
挽巷
挽巷 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:12

    In my case, it was because Photoshop wasn't saving my files correctly. In the file save dialog I was clicking on myfile.png in an attempt to overwrite that file, and it was saving the file with a png extension, but in photoshop format.

    I had to make sure to actually change the file format to PNG before clicking on the file I wanted to overwrite, thus saving in actual png file, thus being readable by iOS. Interestingly, interface builder showed my psd-as-png files just fine.

    More generically, make sure your file is, in fact, in the format you think it is and that iOS is therefore expecting.

提交回复
热议问题