I have an existing working iPhone project inside XCode 4.2. I localized an image (which is used on a button) and I always see the old version of it inside the iPhone simulator. Where does it find that old version?
What I’ve done:
- Window -> Organizer -> Project -> Delete Derived Data
- Product -> Clean
- Inside the IPhone simulator, I tried resetting it.
- I tried deleting the project and recreating it (from SVN)
- I deleted everything in Library->Developer->Xcode, Library->Delveoper->Application Support->iPhone simulator, Library->Developer->Application->Interface Builder 3.0
And I still see the old version… Is it compiled somewhere inside the interface builder with the button or something like that? Weird… really weird.
Note: I’m able to localize an image button if I add a new image, but using old existing image is always showing me the old version.
Solution :
My project contained images like ImageName@2x.png (for IPad I guess).
By also localizing those + clean + build + reset IPhone Sim settings, it worked. Go figure.
Also, when I add another language for the @2x images, I have to manually add the image in the other xx.lproj (where XX is the language code) with the finder because somehow XCode doesn’t it.