Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3358444
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:45:12+00:00 2026-05-18T02:45:12+00:00

Xcode 3.2 provides an awesome new feature under the Build menu, Build and Archive

  • 0

Xcode 3.2 provides an awesome new feature under the Build menu, “Build and Archive” which generates an .ipa file suitable for Ad Hoc distribution. You can also open the Organizer, go to “Archived Applications,” and “Submit Application to iTunesConnect.”

Is there a way to use “Build and Archive” from the command line (as part of a build script)? I’d assume that xcodebuild would be involved somehow, but the man page doesn’t seem to say anything about this.

UPDATE Michael Grinich requested clarification; here’s what exactly you can’t do with command-line builds, features you can ONLY do with Xcode’s Organizer after you “Build and Archive.”

  1. You can click “Share Application…” to share your IPA with beta testers. As Guillaume points out below, due to some Xcode magic, this IPA file does not require a separately distributed .mobileprovision file that beta testers need to install; that’s magical. No command-line script can do it. For example, Arrix’s script (submitted May 1) does not meet that requirement.
  2. More importantly, after you’ve beta tested a build, you can click “Submit Application to iTunes Connect” to submit that EXACT same build to Apple, the very binary you tested, without rebuilding it. That’s impossible from the command line, because signing the app is part of the build process; you can sign bits for Ad Hoc beta testing OR you can sign them for submission to the App Store, but not both. No IPA built on the command-line can be beta tested on phones and then submitted directly to Apple.

I’d love for someone to come along and prove me wrong: both of these features work great in the Xcode GUI and cannot be replicated from the command line.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:45:13+00:00Added an answer on May 18, 2026 at 2:45 am

    I found how to automate the build and archive process from the comand line, I just wrote a blog article explaining how you can achieve that.

    The command you have to use is xcrun:

    /usr/bin/xcrun -sdk iphoneos PackageApplication \
    -v "${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" \
    -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" \
    --sign "${DEVELOPER_NAME}" \
    --embed "${PROVISONING_PROFILE}"
    

    You will find all the details in the article. If you have any questions dont hesitate to ask.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I build in Xcode, any errors or warnings are being duplicated. So in
Does Apple's Xcode development environment provide any tools for memory leak detection? I am
In Xcode, I can use CMD - R to run (or CMD - Y
Does Xcode support anything akin to Visual Studio style #region directives for arbitrary code
Using Xcode 3.1 on OSX 10.5; is it possible to attach (the debugger) to
I'm a complete Xcode/Objective-C/Cocoa newbie but I'm learning fast and really starting to enjoy
I've been using Xcode for the usual C/C++/ObjC development. I'm wondering what are practical
In an Xcode project, if I use std::cout to write to the console the
I am using xcode 2.4.1 on tiger. When i do below everything is ok.
I have an Xcode project with the following group structure: ProjectName/ Classes/ class1.h class1.m

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.