Re: xcodebuild archive fails if given -target; OK if -scheme
Re: xcodebuild archive fails if given -target; OK if -scheme
- Subject: Re: xcodebuild archive fails if given -target; OK if -scheme
- From: Michael Rawdon <email@hidden>
- Date: Fri, 12 Oct 2012 16:46:10 -0700
Hi Jerry -
On Oct 12, 2012, at 9:02 AM, Jerry Krinock < email@hidden> wrote: If I tell xcodebuild to archive my project by specifying a -target,
xcodebuild -project "MyApp.xcodeproj" -target "MainApp" -configuration Release archive
it announces that it will build the first dependency (which is in another project), and then immediately fails with
unsupported build action 'archive'
However if I instead specify a -scheme,
xcodebuild -project "MyApp.xcodeproj" -scheme "MainApp" -configuration Release archive
it seems to work.
By running xcodebuild -list, I've verified that my project has both a target and a scheme named "MainApp"
It has been said [1] that this was a bug in earlier versions of Xcode but was supposedly fixed.
Can anyone explain this? If not, I'll re-file that bug. I'm on Xcode 4.5.1.
The 'archive' action must be used with a scheme. The 'buildaction' section of the xcodebuild man page states this:
archive Archive a scheme from the build root (SYMROOT). This requires specifying a scheme.
The displayed error message could probably be clearer, though...
-- Michael Rawdon email@hidden Xcode Developer Apple Inc., Cupertino CA
|
_______________________________________________
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