Xcode 4.5 Keeps Using Old Code Despite Updates

I have a Mac project for several years that I am currently running with Xcode 4.5. I made some changes to the code and tested the changes using the debugger. Every change I make is structured the way I see the corresponding warnings, and I had to fix errors along the way. But when it really starts, although it shows the code to date, the debugger behaves as if the previous version of the code still exists. It will line up with commented code and execute this code as it passes. The changes I made are completely ignored, and it seems that the compiled compiled code is the old code, and not the new code I'm working with.

BUT, when I run the actual build file from my build subfolder, it really has changes. I just can’t debug it and need to find the problem!

I assume that the folder with the derived data or the files that are used by the debugger are somehow not synchronized or indicate the wrong location. I tried to delete everything there and, of course, run multiple code cleanups, but to no avail. I also tried to switch between LLVM and GCC, as well as two debugger options in the editing schema section.

Any ideas?

+4
source share

All Articles