Image does not update when file name remains the same in XCode 3.1.2

Posted by vman049 on Stack Overflow See other posts from Stack Overflow or by vman049
Published on 2010-08-22T17:21:40Z Indexed on 2010/12/25 4:54 UTC
Read the original article Hit count: 178

Filed under:
|
|

Hi Everyone,

I'm using XCode version 3.1.2 and am developing for iPhone using the Simulator with iOS 2.2.1 on Leopard. I had an image file named "img.jpg" in my project which I decided to switch for a different file. After adding the new file into the XCode Resources folder, I removed the first file and renamed the new file to the same name as the previous one, "img.jpg." When I run my program, however, the Simulator loads the old image instead of the new one, even though the old one has been deleted from disk (not just the reference). I tried changing the name of the file to "img2.jpg," and it worked like it should - loading the new image, but I want to keep the name "img.jpg." I ran a search with Spotlight for "img.jpg" to see if there was another copy stored somewhere that XCode was using, but it only returned my new image file. I have tried uninstalling the app from the Simulator and running the application again, but that also does not fix the problem.

What must I do for XCode to recognize that I want to use the new image file and not the old one?

Thanks for your help!!

© Stack Overflow or respective owner

Related posts about image

Related posts about xcode