Re: Anyway to override "continue after build errors" via a build setting / environment var?
Re: Anyway to override "continue after build errors" via a build setting / environment var?
- Subject: Re: Anyway to override "continue after build errors" via a build setting / environment var?
- From: Ken Thomases <email@hidden>
- Date: Fri, 20 Aug 2010 21:37:42 -0500
On Aug 20, 2010, at 2:11 PM, Shawn Erickson wrote:
> Is it possible to override the "continue after build errors" Xcode
> preference setting via a build setting or environment var?
It's not a build setting -- it exists and has a value even when no project is open. It is a preference.
Through experimentation, it appears to be PBXBuildsContinueAfterErrors which is a boolean. If you were launching Xcode.app, and assuming it works like most Cocoa apps, you can override it by passing arguments on the command line, like:
/Developer/Applications/Xcode.app/Contents/MacOS/Xcode -PBXBuildsContinueAfterErrors YES
However, you're probably not doing that and I have no idea if xcodebuild supports something like this. (It does take build settings on the command line, but as I say, this isn't one.)
You can use the "defaults" command to change preferences for any app which uses the frameworks' built-in preferences architecture (CFPreferences or NSUserDefaults), which includes Xcode:
defaults write com.apple.Xcode PBXBuildsContinueAfterErrors -bool YES
OR
defaults write com.apple.Xcode PBXBuildsContinueAfterErrors -bool NO
OR, to restore to the default:
defaults delete com.apple.Xcode PBXBuildsContinueAfterErrors
So long as you don't mind tweaking Xcode's preferences on the build machine and account, and you don't expect to have a collision from multiple builds running simultaneously in the same account, you can simply bracket your invocation of xcodebuild with the above commands to achieve what you want.
Cheers,
Ken
_______________________________________________
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