Xcode project code changes are not updated 100% after saving

When I make code changes in the iPhone project in Xcode, and then do CMD-B + Enter, I expect the project to be saved, created, and run on the simulator with the latter. Sometimes it happens that he does not get a small change, which I make if I do not clean up the project and then build it.

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

UPDATE: Is this related to the location of my teams? The only thing I can think of is that has changed in terms of assembly configuration.

+9
objective-c iphone xcode
source share
6 answers

Go to the product menu and select "Clean", and then select "Assembly." Here it is.

+3
source share

You had a similar problem, the contents and settings I reset in the iPhone simulator

+3
source share

It seems strange to me because I never get this problem in Xcode. This is not a common problem with C or something else. Tools for C-based languages ​​usually do this as well as Java.

+1
source share

In the Xcode build settings, make sure the Unsaved Files option is set to Always Save. If not, Xcode will not autosave files before building and will use the latest version stored on disk.

+1
source share

In case someone is still facing this (since I had this problem today on Xcode 5.1), all I had to do was open a new tab and close the tab I was working in. Some error on a tab in Xcode,

+1
source share

I'm not sure about this, but in case you are using git go to Xcode settings β†’ Source Control β†’ General

  • Uncheck the Update local status automatically box.
  • Uncheck the Obtain and update server status automatically box.
  • Uncheck the Add and delete files automatically box.
  • Clear the Select files for automatic commit check box.
0
source share

All Articles