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: Chris Espinosa <email@hidden>
- Date: Tue, 20 Sep 2005 21:48:31 -0700
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.
Is is possible that you have two copies of the source code in your
project?
It would help if you supplied a build log of the CompileC line of each
attempted compilation and the actual result.
Chris
_______________________________________________
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