多臺Mac電腦使用同一個蘋果開發者帳號進行調試

     最簡單的方式是直接從已安裝好的機器上導出私有密鑰的,具體方法如下:

  首先就是按照下面說的:

  When you request a certificate from the iPhone Provisioning Portal, a public/private key pair is generated. The public key is included in your certificate. The private key is stored in your keychain. With these items, Xcode code-signs the applications you build with it. If you need to use another computer to develop iOS applications, you must transfer these digital-identification items to the other computer. You can do this in the Xcode Organizer.

  To export your digital-identification items to a secure file, follow these steps:

  Open the Xcode Organizer.

  In the IPHONE DEVELOPMENT group, select Developer Profile.

  Click Export Developer Profile.

  Name the file, select a location for it, enter a password to secure the file, and click Save.

  Now, when you need to develop iOS applications on another computer, import your digital-identification items into it by performing these steps:

  Copy the developer-profile archive to the second computer.

  On the second computer, launch Xcode.

  Open the Organizer.

  In the IPHONE DEVELOPMENT group, select Developer Profile.

  Click Import Developer Profile.

  Locate the archive, enter the password used to secure it, and click Open.

  關鍵的一點就是不是直接從keychain裏導出.cer文件,而是利用Xcode的organizer的IPHONE DEVELOPMENT ---》Developer Profile裏自帶的Export和Import操作

上述方法解決了一個很關鍵的問題:私有密鑰安裝問題,如果還有什麼證書沒裝的可以參考下文共裝4個文件即可。

保存你的私鑰,轉移到其它系統

將你的私鑰安全的保存,如果你需要在多臺電腦上開發或者重裝你的操作系統的。如果沒有私鑰,那麼將無法再Xcode簽名或者在apple設備上測試應用。當一個CSR被生成,Keychain Access應用在你的登錄keychain裏面生成一個私鑰,這個私鑰是和你的用戶賬戶關聯的,如果在系統重裝的時候是無法重新生成的。如果你希望在多個系統上做開發或者測試,那麼你需要在所有你工作的系統之上導入你的私鑰。

1、 導出私鑰和數字證書是爲安全保存和能夠在多臺電腦上進行工作。打開Keychain Access應用選擇’KEY’分類。

2、 右鍵點擊和你iphone開發證書關聯的私鑰,並在彈出菜單中選擇導出選項。

3、 使用(.p12)保存包含了你個人信息的鑰匙。

4、 你將會被提示創建一個密碼。

現在可以通過.p12文件在不同系統之間傳輸。雙擊.p12在其他系統上進行安裝。輸入你在第四步創建的密碼即可在安裝的mac機器上進行調試了。


--------------------------------------------華麗的分割線------------------------------------------

   生成一個ios(測試)證書時需要從本電腦生成一個請求證書,導致,生成成功後,不能多臺電腦共用一個證書。

   以下是具體的步驟:

1、找到生成證書得電腦,選擇 鑰匙串,點擊[種類]中的密鑰,如圖



2、選中密鑰,在右邊得詳情裏面,找到要目標密鑰。如圖:



右擊,導出,導出文件爲  ***.p12   

將***.p12 發給其他用戶,雙擊就可到入該用戶的鑰匙串中,另外一臺電腦就能使用該證書了!



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章