Search code examples
iosxcodexcode4app-storebuild-automation

Setting up Xcode 4 'Save for Enterprise or Ad-Hoc Deployment' as a post-build action


I want to automate enterprise deployment as a post-build action which triggers after archiving, a script following these steps:

  1. Use 'Distribute...' action in the Organizer for the latest archived build
  2. Use the 'Save for Enterprise or Ad-Hoc Deployment' option
  3. Select the pre-defined signing identity
  4. Activate 'Save for Enterprise Distribution' and fill out the fields (URL, Title etc.)
  5. Save the ipa and plist files in a given path

Is it possible to create a script automating these actions? Any help would be appreciated.


Solution

  • A lot of these things can be done using the terminal, hence you can use it to build your apps for distribution. This post might help you a lot, it did help me when I wanted to do CI using Jenkins.

    Running xcodebuild from a forked terminal