Generating ipa from xcode command-line

后端 未结 3 1761
梦如初夏
梦如初夏 2021-01-31 11:05

Whats the best approach for generating an IPA file from command-line?

I\'m on xcode 4.2 and generating the archive using:

xcodebuild -scheme AppStore cle         


        
相关标签:
3条回答
  • 2021-01-31 11:11

    The missing piece is using the PackageApplication utility.

    /usr/bin/xcrun -sdk iphoneos PackageApplication -v $FULL_PATH_TO_APP -o $OUTPUT_PATH

    You can also pass this script options for resigning, and profile embedding. Using the --sign and --embed flags respectively.

    0 讨论(0)
  • 2021-01-31 11:18

    After Archive, you need to "Export" to desired format ie ipa:

    xcodebuild -sdk iphoneos7.0 -archivePath "path to archive file" -exportPath "path_for_export" -exportFormat ipa -exportArchive -exportProvisioningProfile "provisioning_profile_to_export_with"

    0 讨论(0)
  • 2021-01-31 11:33

    This tool makes it trivial to build (and distribute): https://github.com/nomad/shenzhen

    0 讨论(0)
提交回复
热议问题