Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Project Code Changes Not Updating 100% After Save-Build-Run

When I make code changes to my iPhone game project in Xcode, and then do CMD-B + Enter, I expect the project to be saved, build and run on the simulator with the latest. What is happening though, sometimes, is that it doesn't pick up a small change I make unless I clean the project and then build.

I'm a long time Java person and newish to C-based languages and it's compiler. Can someone explain to me what is cached after each build that does this and how to change my project settings to avoid having to clean every time? Or tell me the bad news that this is part of C development? Not trying to bash it - I get compiled JSPs stuck in the working cache often in Java, too. :P

UPDATE: Does this have to do with the location of my builds at all? That's the only thing I can think of that's changed from a build config perspective.

like image 659
Greg Avatar asked Apr 02 '10 14:04

Greg


4 Answers

Seems odd to me, because I never get this problem in XCode. It's not a common issue with C or anything. The tools for C-based languages usually do this just as well as the Java ones.

like image 170
Nick Moore Avatar answered Nov 11 '22 11:11

Nick Moore


Had a similar problem, I reset content and settings in the iPhone simulator

like image 35
Nath Avatar answered Nov 11 '22 10:11

Nath


Go to Product Menu and choose Clean and then choose Build. Thats it.

like image 2
karthik89 Avatar answered Nov 11 '22 09:11

karthik89


In the Xcode Build Preferences make sure that "Unsaved Files" is set to "Always Save". If not, Xcode will not autosave files before building and will use the last version saved to disk.

like image 1
TechZen Avatar answered Nov 11 '22 10:11

TechZen