jenkins xcodebuild命令打包出现unknown error -1=ffffffffffffffff Command /usr/bin/codesign failed with e...

iOS开发中,我们利用jenkins构建自动打包时,如果用xcodebuild命令打包出现unknown error -1=ffffffffffffffff Command /usr/bin/codesign failed with exit code 1 签名失败问题。

在jenkins中设置成功的情况下


解决方法:1.加上命令解锁钥匙串:security unlock-keychain -p 123456 /Users/Shared/Jenkins/Library/Keychains/login.keychain-db

                   2.重新将 /Users/xxx/Library/Keychains文件夹拷贝到/Users/Shared/Jenkins/Home/Keychains 覆盖

你可能感兴趣的:(jenkins xcodebuild命令打包出现unknown error -1=ffffffffffffffff Command /usr/bin/codesign failed with e...)