Need a way to export archived app via xcodebuild
| Originator: | kristopherdjohnson | ||
| Number: | rdar://11727303 | Date Originated: | 22-Jun-2012 11:47 AM |
| Status: | Duplicate/9602102 | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.3.3 |
| Classification: | Enhancement | Reproducible: | Always |
Summary: xcodebuild can be used to Build & Archive an app from the command line. However, there is no easy way to export the archived application as an .ipa from the command line. Steps to Reproduce:N/A Expected Results:N/A Actual Results:N/A Regression:N/A Notes: One can use an "xcodebuild ... archive" command to build an application and add it to Xcode's Organizer - Archives view. Using Xcode, one can click the Distribute... button to save the app for Enterprise or Ad-Hoc deployment, or to export as an .xcarchive. Unfortunately, there is no way to perform these operations with xcodebuild itself. There are workarounds. For example, to build an app for ad-hoc distribution, one can do an "xcodebuild ... build" command to generate the .app bundle, then perform the steps necessary to create an .ipa file from that .app. However, the process is complicated. Another option is to use "xcrun PackageApplication ...", but that is complicated too, due to the need to specify iOS code-signing information. It would be really nice if xcodebuild provided "exportipa" and/or "exportarchive" build actions.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!