SSH 使用 xcodebuild codesign报错

xcodebuild[883:19807766] [MT] IDEDistribution: Step failed: : Error Domain=IDEDistributionPipelineErrorDomain Code=0 "Code signing "com.xxx" failed." UserInfo={NSLocalizedDescription=Code signing "com.xxx" failed., NSLocalizedRecoverySuggestion=View distribution logs for more information.}
error: exportArchive: Code signing "com.xxx" failed.

Error Domain=IDEDistributionPipelineErrorDomain Code=0 "Code signing "com.xxx" failed." UserInfo={NSLocalizedDescription=Code signing "com.xxx" failed., NSLocalizedRecoverySuggestion=View distribution logs for more information.}

ssh方式,默认是没有账户的,但是访问钥匙串要求必须有用户身份,所以添加一步输入密码解锁钥匙串
build步骤前添加一步解锁钥匙串。

security unlock-keychain

你可能感兴趣的:(SSH 使用 xcodebuild codesign报错)