• 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
Re: xcodebuild archive fails if given -target; OK if -scheme
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: xcodebuild archive fails if given -target; OK if -scheme
      • From: Jerry Krinock <email@hidden>
References: 
 >xcodebuild archive fails if given -target; OK if -scheme (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Finding the Xcode 4 "Build Products Path"
  • Next by Date: Where is sel_isEqual()
  • Previous by thread: xcodebuild archive fails if given -target; OK if -scheme
  • Next by thread: Re: xcodebuild archive fails if given -target; OK if -scheme
  • Index(es):
    • Date
    • Thread