Re: BugReport: Build after changing build config compiles old code
Re: BugReport: Build after changing build config compiles old code
- Subject: Re: BugReport: Build after changing build config compiles old code
- From: Heath Raftery <email@hidden>
- Date: Thu, 22 Sep 2005 17:51:20 +1000
On 21/09/2005, at 2:48 PM, Chris Espinosa wrote:
On Sep 20, 2005, at 5:18 AM, Heath Raftery wrote:
I have an Xcode project with two targets and often build both
using the Deployment and Development build configurations. The
steps which usually lead to the problem go like this:
1. Make some changes (with errors) to the source. Build using the
current config. Build fails.
2. Fix the errors in the source, save the files, and build again.
Build succeeds.
3. Switch immediately to the other build configuration (in the
Build window) and build again.
4. Build fails due to old errors in source! Clicking the error
shows the corrected source file, at the location of the old error.
5. Build again without doing anything else and build succeeds.
Since I save changes to a source file, I'd like Xcode to compile
the version on disk, regardless of the configuration I choose. The
workaround is annoying but workable - what would be unacceptable
is when the fixed errors in the source do not result in compile
errors, and Xcode produces a build based on old code.
Xcode doesn't in fact work the way you imply it does above: it
always compiles only from saved files. So your problem as noted
above isn't expected behavior.
Interesting. I'm quite sure this is what I'm seeing. I'll try a bit
harder to reproduce it and be a bit careful about what I'm doing.
Is is possible that you have two copies of the source code in your
project?
No.
It would help if you supplied a build log of the CompileC line of
each attempted compilation and the actual result.
Roger that.
Heath
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden