How to get a distribution app when using xcodebuild -exportArchive (Xcode8.3, Auto Signing)?

前端 未结 3 870
忘了有多久
忘了有多久 2021-02-19 14:04

After update Xcode8.3, the options \'-exportSigningIdentity\', \'-exportProvisioningProfile\' and \'-exportFormat\' are removed from \'xcodebuild

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-19 14:29

    Sounds like you want to create an IPA on the command line from an existing xcarchive. Since Xcode 7, the preferred way to do this is (from man xcodebuild):

    xcodebuild -exportArchive -archivePath xcarchivepath -exportPath destinationpath -exportOptionsPlist path
    

    So in your case:

    xcodebuild -exportArchive -archivePath MyApp.xcarchive -exportPath MyApp.ipa -exportOptionsPlist exportOptions.plist
    

    exportOptions.plist is a PLIST file that contains various parameters configuring the IPA export. See xcodebuild -help for all available options. You'll have to at least specifiy an entry for method (app-store, ad-hoc, enterprise etc. - defaults to development). If you just want to export for App-Store distribution, the file should look like this:

    
    
    
    
        method
        app-store
    
    
    

提交回复
热议问题