[Jenkins] jenkins 签名报错

2018-05-08  本文已影响22人  manajay

iOS 相关

xcode-select: error: tool 'xcodebuild' requires Xcode,
 but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

# Install Command Line Tools if you haven't already.
xcode-select --install 
sudo xcode-select --switch 
 # Enable command line tools
/Library/Developer/CommandLineTools
# 确认你的 xcode , 如果有两个 xcode
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

jenkins 自动打包时, 签名失败

error: exportArchive: No profiles for '' were found

签名账户登录问题

error: exportArchive: The operation couldn’t be completed. Unable to log in with account ''.

原因是:
1️⃣ Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild 开启自动签名
2️⃣ Xcode 9.3 默认不允许访问钥匙串,导致无法签名
3️⃣ Xcode 9.3 的账户管理有问题. 即便是登录了账户, 且 xcodebuild -exportArchive 后面添加了 -allowProvisioningUpdates, 仍然有问题, 因为 退出 Xcode 时, 账户信息仍然会丢失. 导致提示 .

解决办法
1️⃣ xcodebuild -exportArchive 后面添加了 -allowProvisioningUpdates
2️⃣ 使用Xcode 9.2 版本

上一篇 下一篇

猜你喜欢

热点阅读