Reputation: 1691
This particular stuff is getting me crazy :
Win [1365:707] Could not load the "Default.png" image referenced from a nib in the bundle with identifier "com.abc.acd"
How should I fix it and the error is only on device and not on simulator?
Upvotes: 0
Views: 1743
Reputation: 8472
You are getting this error because one of your NIBs refers to the image, and (for some reason) it isn't being packaged into your bundle correctly.
Upvotes: 0
Reputation: 3980
One possible reason is that the simulator finds the file because your Mac is formatted with case insensitive filesystem. That means that "Default.png", "default.png" and "DefAuLt.png" all counts as the same file.
However on the iPhone the filesystem is case sensitive which means that "Default.png", "default.png" and "DefAuLt.png" all counts as different files.
Therefore, be sure that your file actually is named "Default.png" and not "default.png" or something else.
Upvotes: 0
Reputation: 41
Just delete the app from the iphone and then clear all the target from the xcode. Then run the application again
Upvotes: 0
Reputation: 50697
Open the XIB in question and make sure that none of your UIImageView's have their image property set to Default.png
Or, if you require the Default.png to be there, make sure that it exists in your Project files.
Upvotes: 1