I have an application with some images in it. Recently I added a new one in and it displays fine on the simulator.
When I create a distribution build and do an ad-hoc install it works fine, but for reasons unknown the image doesn't appear.
I have tried
- "touching" the directory it is in
- Re adding it
- Cle开发者_如何学Pythonaning the solution around 234087290 times
But to no avail! Any ideas?
EDIT
The file is definitly inside the "Copy Bundle Resources" folder.
Check that the image is being copied into your bundle. In the Groups & Files pane on the LHS of XCode expand Targets and then your app build target. Check that you file is included under the "Copy Bundle Resources" section.
Other than that, there's the tried and tested "Xcode Voodoo dance": Clean All Targets, delete build folder, restart Xcode
Make sure the image is added in Xcode as part of the project. I've seen the case where adding the file to the folder in Finder will make it available on the Simulator, but not on the device, because it was not added in Xcode.
精彩评论