Due to Apple only allowing one account to be Team Agent on its enterprise account and my team not having a build server I was given the task of attempting to discover how to “share” this certificate across multiple machines.
These instructions are to be performed on the machine which currently has the distribution profile installed:
Open “Keychain Access”
In “Category” panel, select “Certificates”
Expand “iPhone Distribution: “
Highlight both “iPhone Distribution: team agent name” certificate and “team agent name” private key
Right click and select “Export 2 items”
Select location to save p12 file
Enter password – this will be used to install it on the other machine
Save and transfer p12 file to second machine
Those instructions are to be performed on the second machine:
Double click on p12 file. Keychain access should open
Enter password for p12 file. You should now have a new private key in the logon section in Keychain access. N.B this private will have the same name as it did one the first name
Log into “Team Agent” account on http://developer.apple.com/
Select “iOS Provisioning Profile” link
Select Certificates->Development tab, download and install certificate for Team Agent
Double click to install to keychain
Select Certificates->Development tab, download and install WWDR intermediate certificate
Double click to install to keychain
Select Provisioning->Distribution tab and download provisioning profile N.B it should be a .mobileprovision file, ifs its .cer you are in the Distribution tab of the Certificates section
Drag onto Xcode icon to install
Congratulations you should now have your distribution file on two machines. Please post any questions and I’ll attempt to answer them as best as I can.
If you want to know how to create an .ipa file please see my previous post
Possible roadblocks:
When double clicking on any of the any of the above files: “The system roots keychain cannot be modified” – You’ll need to manually add the files to the appropriate Keychain by dragging them onto it so “System” for AppleWWDRCA.cer and “login” for development certificate.
转载于:https://my.oschina.net/zhangzhihao/blog/102201