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 8281031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:53:37+00:00 2026-06-08T09:53:37+00:00

I am trying to simplify the build->archive->submit process for iOS app publishing. We have

  • 0

I am trying to simplify the build->archive->submit process for iOS app publishing.
We have over 50 mobile apps that have nearly identical framework, but with different artwork and configuration settings.

I normally would load each project in xcode 4.2 and build->archive->submit the usual way with the xcode GUI, but we are up over 50 apps now and this process is very tiresome any time we push out an update.

That being said, I am trying to speed up this process with using a shell function.
I did plenty of research and found that xcodebuild (See Reid’s answer) should work, however the Archive option is not working as I get the following error:

unsupported build action 'archive'

So I wrote the following:

# $1 should be a date like: 2012-07-17
# $2 should be a time like: 10.31AM
# $mybase will be the current directory at the time the function was called
# so make sure to cd into the folder containing the xcode project folders first

function xcodeArchive {
    mkdir ~/Library/Developer/Xcode/Archives/$1
    mybase=$PWD
    for x in `ls`
    do
        mkdir ~/Library/Developer/Xcode/Archives/$1/$x
        mkdir ~/Library/Developer/Xcode/Archives/$1/$x/dSYMs
        mkdir ~/Library/Developer/Xcode/Archives/$1/$x/Products
        mkdir ~/Library/Developer/Xcode/Archives/$1/$x/Products/Applications
        cd $mybase/$x
        xcodebuild
        #read -p "Press [Enter] to continue"
        cd $mybase/$x
        cp $x/$x-Info.plist ~/Library/Developer/Xcode/Archives/$1/$x/Info.plist
        cp -r build/Release-iphoneos/$x.app.dSYM ~/Library/Developer/Xcode/Archives/$1/$x/dSYMs/$x.app.dSYM
        cp -r build/Release-iphoneos/$x.app ~/Library/Developer/Xcode/Archives/$1/$x/Products/Applications/$x.app
        cd ~/Library/Developer/Xcode/Archives/$1/
        mv $x $x\ $1\ $2.xcarchive
        cd $mybase
    done
}
export -f xcodeArchive

I put this in my .bash_profile and everything runs correctly as I would expect, except I’m not copying the correct “Info.plist” and I can’t figure out where to copy it from or how to generate it. So now I am stuck.

Xcode will recognize the archives, but it lists them under “Unknown Schema” and “Unnamed Archive” in the organizer.

Any help regarding now to get the correct Info.plist is greatly appreciated.

I also welcome recommendations on how to improve the script and/or a more efficient way to batch build+archive these iOS apps.

Note:

  • I am unable to upgrade beyond Xcode 4.2 as that requires (as I understand it) OS X 10.7+ which I am not able to obtain yet (company computer).

  • I am still very much a bash/shell novice, so I apologize for any ugly code/practice above.

  • Also, this is for official app submission, not for ad-hoc or anything like that.

Thanks again for your help.

  • 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-06-08T09:53:39+00:00Added an answer on June 8, 2026 at 9:53 am

    OK I found a solution that will work. After doing a lot more searching and a lot of guess and check, I found I can still use the “archive” option with xcodebuild, I just have to specify a workspace and scheme and apparently I wasn’t doing that correctly before as it now works.

    So, for anyone looking for a similar solution (to batch archive xcode projects), here is my function:

    # $mybase will be the current directory at the time the function was called
    # so make sure to cd into the folder containing the xcode project folders first
    
    function xcodeArchive {
        mybase=$PWD
        for x in `ls`
        do
            cd $mybase/$x
            xcodebuild -workspace $x.xcodeproj/project.xcworkspace -scheme $x archive
            cd $mybase
        done
    }
    export -f xcodeArchive
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to simplify some of the bookmarklets that I have created over
In order to simplify the build process, I've been trying to reorganize my version
I'm trying to build for multiple targets in Xcode, to simplify the process of
I'm trying to simplify the deployment of an application. In order to build the
I am trying to revise my build process to use ant with apache ivy
I am trying to simplify (via make_fn() ) the generation of functors that preprocess
I'm trying to simplify a form (using ASP.NET MVC but I guess that might
I am having some trouble trying to simplify some logic that is contained in
At work we are trying to simplify an application that was coded with an
I was experimenting with my app in the ios simulator when I found that

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.