Jenkins - Xcode build works codesign fails

前端 未结 11 2357
夕颜
夕颜 2020-11-30 19:14

Below is my build script (not using xcodebuild plugin).

  1. Build step works
  2. I have created a separate keychain with the required certs and private keys
11条回答
  •  [愿得一人]
    2020-11-30 19:53

    That's a code signing error, the xcodebuild command can't access your certificate's private key since it's running through Jenkins' slave with SSH.

    Run this line in your shell script before you run the xcodebuild in order to allow access:

    security set-key-partition-list -S apple-tool:,apple: -s -k  /Users//Library/Keychains/login.keychain-db
    

    Hope that helps!

提交回复
热议问题