Jenkins on OS X: xcodebuild gives Code Sign error

前端 未结 11 2006
醉话见心
醉话见心 2020-12-12 09:39

Summary:

Setting up Jenkins on OS X has been made significantly easier with the most recent installer (as of 1.449 - March 9, 2012), however managing the pr

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 10:20

    I've had the same issue and have been searching around for some time for an answer. Here's one thing that I've learned.

    I am running jenkins as the jenkins user, user created by the installer, and as everyone else has mentioned he doesn't have access to the same keychain that your normal user does. Instead of trying to login as the jenkins user, I created a second build project that simply has one build step that is "Execute Shell" in which I run commands I want to test as the jenkins user.

    Once I had that set up, I could run the command

    security list-keychains

    And this revealed to me that the only thing that jenkins could see was the system keychain.

    + security list-keychains
        "/Library/Keychains/System.keychain"
        "/Library/Keychains/System.keychain"
    

    With that knowledge, I then opened the Keychain Access app and copied my "iPhone Developer: xxxx" certificate into the System keychain (Right-click, copy from the "login" keychain).

    This got me passed the certificate/private key pair code sign error but opened up another one with the provisioning profile (seems like a similar, but different, issue).

提交回复
热议问题