How do I add certificates for OS X Server 3.2.1 with Xcode 6.0.1

后端 未结 7 1669
遇见更好的自我
遇见更好的自我 2020-12-25 08:58

After I have upgraded both Xcode (to 6.0.1) and OS X Server (to 3.2.1) I can\'t figure out how to add certificates for the provisioning profiles so the Xcode bot can find th

7条回答
  •  庸人自扰
    2020-12-25 09:07

    When you export a .p12 file Keychain Access will ask you for a password. Try adding the password for the p12 file to your command. Like so,

    sudo security import "/Users/administrator/Desktop/Greener Pastures Enterprise Distribution TEST Certificate.p12" -P PASSWORD -k /Library/Developer/XcodeServer/Keychains/Portal.keychain -A -T /usr/bin/codesign -T /usr/bin/xcodebuild -T /usr/bin/pkgbuild

    I have a script on our build server that imports p12 files from a drop off folder. The import line looks like this:

    security import $_ -k /Library/Developer/XcodeServer/Keychains/Portal.keychain -P PASSWORD -A

提交回复
热议问题