从achived 导出 ipa
xcodebuild -exportArchive -archivePath <PROJECT_NAME>.xcarchive -exportPath <PROJECT_NAME> -exportFormat ipa -exportProvisioningProfile "Name of Provisioning Profile"
export ipa in Organizer
Right click on Archive on Organizer.
Click Show in Finder.
You can see .xcarchive file in Finder.
Open Terminal and cd to .xcarchive path.
Using following command to generate .ipa file.
This will save .ipa on Desktop.
xcodebuild -exportArchive -exportFormat ipa -archivePath <FILE_NAME>.xcarchive -exportPath ~/Desktop/<FILE_NAME>.ipa
export ipa by Ad Hoc
Open Xcode, go to Organizer and export as Ad Hoc build with proper provisioning profile
export ipa in command line
First, create yourself a build script. The proposed build script could start by a clean and followed with performing an archive call:
xcodebuild clean -project <PROJECT_NAME>.xcodeproj -configuration Release -alltargets
xcodebuild archive -project <PROJECT_NAME>.xcodeproj -scheme <NAME_OF_SCHEME> -archivePath <PROJECT_NAME>.xcarchive
Export the archive into a .IPA file using the following command:
xcodebuild -exportArchive -archivePath <PROJECT_NAME>.xcarchive -exportPath <PROJECT_NAME> -exportFormat ipa -exportProvisioningProfile "Name of Provisioning Profile"