October 21, 2011

Xcode: Problem with old files being referenced in cache

This shall be a quick one.

I have encountered a few times where after renaming a image or audio resource file in my project, or replacing a file with a new version but same filename, the simulator still shows the same old files upon rebuilding. This is because Xcode does some form of caching of the resources.

So to resolve, clean the cache!
Xcode -> Product -> Clean




If you are still having issues, try to reset the simulator
iOS Simulator -> Reset Content and Settings... -> Reset

These 2 combined should resolve most of the caching issues.
In fact, if sometimes the simulator throws you weird errors which you cannot seem to figure out where is the problem, the same steps above might help!



No comments:

Post a Comment