开发者

File not being copied when deployed to iPod device

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

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜