How to get Xcode to update local copies of project image files?

I am having some strange problems with Xcode and it is almost impossible to find the answers just googling around.

I have several icon image files (PNG only) in my Xcode project, and when I change some of them in Photoshop, they are not updated when I make another build in Xcode. To fix this, I need to add the file to the project again, and then delete the old version of the file that is already in Xcode.

What am I doing wrong here? I am updating / replacing an image file that is stored in the project directory directly from Photoshop, so I assumed that it would just reboot and a new version would appear.

UPDATE: It appears that when I first imported image files into my project, they were added to my Classes / subdirectory. Therefore, when I updated them, he simply added them to the root of my project.

+3
source share
2 answers

This is pretty weird. I would suggest two things:

  • Make sure you are not Photoshop files in the wrong directory. I know this sounds easy, but worth checking out. Make sure you do not save them in the build / directory or anything like that.

  • Before you run it again in the simulator, first try to clear all the build goals to make sure that your project is really building again before running the simulator.

+3
source

. : Xcode Project → Clean

xcode

+6

All Articles