Xcode 9 archiving failure - Code Signing Error: No profiles for ‘x’ were found

问题:

Error Domain=IDEProfileLocatorErrorDomain Code=1 
"No profiles for 'com.sinyee.xxxx.xxxx' were found"
UserInfo={NSLocalizedDescription=No profiles for 'com.sinyee.xxxx.xxx' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'com.sinyee.xxxx.xxxx'.
 Automatic signing is disabled and unable to generate a profile.
 To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}

问题根源: xcode9 修改了导出配置 默认xcode9 不允许更新钥匙串内容进行动态读取

解决办法:To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild
在xcodebuild shell 脚本中添加-allowProvisioningUpdates

 -exportOptionsPlist ${optionsDevelopmentPlistPath}   -allowProvisioningUpdates

xcode9 exportOptions.plist 新模板 中添加了新的key provisioningProfiles
后面打包发现其实有没有 provisioningProfiles 依然是可以正常导出的 因缺思厅

注意:企业包一定要包含 provisioningProfiles




    teamID
    xxxxxxxxx
    method
    app-store
    compileBitcode
    
    provisioningProfiles
    
        com.sinyee.xxxx.xxxx
        xxxxx
    



你可能感兴趣的:(Xcode 9 archiving failure - Code Signing Error: No profiles for ‘x’ were found)