XcodeBuilder 遇到的一些坑

2017-04-13  本文已影响569人  南国青天

升级到Xcode8.3之后, 以前的自动编译的脚本报错export Error - exportFormat

旧的的导出命令:

'xcodebuild -exportArchive -archivePath "${archivePath}" 
-exportPath ${exportPath} -exportFormat ipa 
-exportProvisioningProfile "${provisioningProfile}"'

新的导出命令:

xcodebuild -exportArchive -archivePath <xcarchivepath> 
-exportPath <destinationpath>
-exportOptionsPlist <plistpath>

exportOptionsPlist

这里需要传入一个Plist文件,提供自动签名需要的TeamID和Method。
具体Plist的参数文章在 这里.

开发和发布的TeamID是不一样的, 传入developer TeamID,自动打包在签名的时候就出错了,用文本打开*.xcodeproj/project.pbxproj搜索 DevelopmentTeam, 又或者去开发中中心找到对应的distribution provisioning点击 edtior, 然后会看到xxxxx.com xxxx应该就是发布的TeamID. 不懂的话可以看 这里

Error Domain=IDEDistributionErrorDomain Code=1 "No valid iOS Distribution signing identities belonging to team ABCDEFGHIJKL were found." UserInfo={NSLocalizedDescription=No valid iOS Distribution signing identities belonging to team ABCDEFGHIJKL were found.}
** EXPORT FAILED **
上一篇 下一篇

猜你喜欢

热点阅读