The modified code still runs the old code.

My device information:

iMac, Apple M1, 16GB, macOS 14.4.1

My software information:

Xcode Version 15.3 (15E204a)

My problem:

I created a new project, and I just printed a line of log.When I run the project for the first time and the second time, the log can be printed correctly.But when I modified the code and ran the project for the third time, the console output was still the log of the old code.

Who has similar experience to help me?

This doesn't usually happen to me, but I also don't have this icon in the top of my Xcode window:

might that have something to do with it?

Try to set DEPLOYMENT_LOCATION to YES in Build Setting.

The modified code still runs the old code.
 
 
Q