xcodebuild archive fails if given -target; OK if -scheme
xcodebuild archive fails if given -target; OK if -scheme
- Subject: xcodebuild archive fails if given -target; OK if -scheme
- From: Jerry Krinock <email@hidden>
- Date: Fri, 12 Oct 2012 09:02:43 -0700
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.
Thanks,
Jerry Krinock
[1] http://stackoverflow.com/questions/5384999/archive-with-xcodes-command-line-build-tool-xcodebuild-archive
Jerry Krinock
email@hidden
Edward R. Murrow: "Who owns the patent on this vaccine?" Jonas Salk: "Well, the people, I would say. There is no patent. Could you patent the sun?" - CBS Television, See It Now, 1955 April 12.
_______________________________________________
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