xode9.0的xcodebuild -exportArchive -archivePath 导出ipa包报错Error Domain=IDEProvisioningErrorDomain Code=3

今天升级xcode9.0,莫名其妙的

xcodebuild -exportArchive -archivePath命令失效,导出ipa安装包报错,经过和同事的自己查找,发现苹果的XcodeBuild命令发生了变化,需修改 -exportOptionsPlist 导出的plist文件,操蛋的苹果必须要我们指定证书的buildId和证书的UUID。

以下是苹果的官方文档:

provisioningProfiles : Dictionary

 For manual signing only. Specify the provisioning profile to use for each executable in your app. Keys in this dictionary are the bundle identifiers of executables; values are the provisioning profile name or UUID to use.

修改后的exportOptionsPlist文件如下:

原文地址:https://www.cnblogs.com/likuiliang/p/7573160.html