I am using Xcode version 3.1.2 and developing for iPhone using 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 another file. After adding a new file to the Xcode Resources folder, I deleted the first file and renamed the new file to the same name as the previous one, "img.jpg". However, when I run my program, the simulator loads the old image instead of the new one, although the old one was deleted from the disk (and not just with the link). I tried changing the file name to "img2.jpg" and it worked as it should - loading a new image, but I want to keep the name "img.jpg". I ran a search using Spotlight for "img.jpg" to find out if there is another copy stored somewhere in Xcode,but she only returned my new image file. I tried to remove the application from Simulator and run the application again, but this also does not fix the problem.
What should I do for Xcode to find out that I want to use the new image file, not the old one?
Thanks for the help!
source
share