简体   繁体   中英

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.

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

I think you can use command line build tools to achieve the goal. The building and archiving actions in Xcode depend on these tools.

Refer to:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM