• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
xcodebuild archive fails if given -target; OK if -scheme
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: xcodebuild archive fails if given -target; OK if -scheme
      • From: Michael Rawdon <email@hidden>
  • Prev by Date: Re: Xcode modifies storyboard when opened for the first time?
  • Next by Date: Re: Finding the Xcode 4 "Build Products Path"
  • Previous by thread: Re: Finding the Xcode 4 "Build Products Path"
  • Next by thread: Re: xcodebuild archive fails if given -target; OK if -scheme
  • Index(es):
    • Date
    • Thread