Xcode 9 distribution build fails because format of exportOptions.plist has changed in new release

后端 未结 2 1209
南旧
南旧 2020-12-24 02:16

I am trying to compile an ad-hoc IPA for my app using SDK version 6.1.2 and Xcode 9 beta (trying to see if the app works in the new version). My build is failing with the fo

2条回答
  •  醉话见心
    2020-12-24 02:29

    It appears you using manual code signing (deduced by the Export Options property list in your error message). You should probably switch to automatic code signing as recommended by Apple if it suits your needs.

    The problem appears to be that exportOptions.plist format is not compatible with Xcode 9. A bare bones distribution plist for Xcode 9 now looks similar to this:

    
    
    
        
          provisioningProfiles
          
            MY_APP_BUNDLE_ID
            MY_PROFILE_NAME_AS_SHOWN_BY_XCODE or UUID_FOUND_IN_MOBILEPROVISION_FILE
          
          signingCertificate
          iOS Distribution
          signingStyle
          manual
          teamID
          MY_TEAM_ID
      
    
    

    You can see the list of supported options for the exportOptions.plist by running xcodebuild -help.

    You can get a useful overview of how this stuff works in Xcode 9 by watching this video: https://developer.apple.com/videos/play/wwdc2017/403/

    You can also get help by searching for 'Manual Signing' in Xcode's search field.

    You can create a dummy exportOptions.plist file by following the process documented here by Anna Bátki at BitRise: http://blog.bitrise.io/2017/08/15/new-export-options-plist-in-Xcode-9.html

    You should be aware that if you follow Anna's steps using Xcode 9 beta 5, the exportOptionsPlist will not be exported. This behavior works again in Xcode 9 GM.

    To determine what the value of your provisioning profile s in the exportOptionsPlist file, you can view the contents of the .mobileprovision file you wish to use and set the key to your application's bundle id ('com.foo') and the value to the UUID of in your .mobileprovision file.

    You can see the provisioning profiles the build will be using by looking here: ls ~/Library/MobileDevice/Provisioning\ Profiles/

    Another useful tool is using the QuickLooks feature of the Finder to see the values of the provision profiles without having to fire up editor.

提交回复
热议问题