Re: [Solved] Train Wreck using xcodebuild in Xcode 6
Re: [Solved] Train Wreck using xcodebuild in Xcode 6
- Subject: Re: [Solved] Train Wreck using xcodebuild in Xcode 6
- From: Jens Alfke <email@hidden>
- Date: Mon, 29 Sep 2014 12:31:49 -0700
On Sep 29, 2014, at 11:36 AM, Jerry Krinock < email@hidden> wrote:
The build was aborting when a custom Run Script Build Phase tried to read a value from the product’s Info.plist using PlistBuddy, but the Info.plist wasn’t there yet.
Was the problem that PlistBuddy failed, but the shell script didn't tell Xcode about the error? I've had that sort of problem a lot in custom build phases. Adding the "-e" flag to the shell arg list, or adding "set -e" at the top of the script, will cause the shell to exit and signal failure if any of its commands fail.
(Apologies if you already know that. Maybe this will help someone else…)
—Jens
|
_______________________________________________
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