开发者

xcode 4 oddness keeping folders in project synched with simulator.

I have spent las 4 hours trying to figure out why Xcode 4 is not correctly synching my asset folder with simulator. The problem is the following:

1) I have a bunch of images, etc... in a folder called Assets. This folder has b开发者_高级运维eing added to Xcode with the creating folders option (It creates folders (blue) not groups (yellow)).

2) I add an image to Assets/image folder on disk and instantly it is updated in Xcode.

3) I compile and run the application and I can see how the application installed in the simulator gets the new file added.

4) I remove that file from the Assets/image folder. Xcode shows the change instantly.

5) I build and run the application but the file is not removed from the Assets/Image folder in the simulator.

Of course, I have the Assets directory added to a Copy Build phase. So, the only thing that comes to mind is that it just copies the files from the source folder (Xcode build folder) to the simulator app folder, but do not updates it, if something is there that is not used it will not be removed. What is IMO something really ugly and weird.

Same thing happens with files in Resource Group in Xcode. Am I missing something? I have not much experience with Xcode.

Thanks in advance.


Be sure to clean your app (Shift-Command-K) or clean the build folder (Option-Shift-Command-K) after making the directory structure change and before running again. Here is a handy list of Xcode keyboard shortcuts.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜