核心步驟
- 打開 Xcode → Window → Devices and Simulators (或 Organizer)。
- 選中左側 Teams 或賬號。
- 點擊底部 Export...(導出簽名資產)。
- 設置導出密碼(用於加密私鑰),選擇保存路徑(生成 .developerprofile 文件)。
- 將文件複製到新電腦,雙擊導入,輸入密碼完成證書、描述文件、私鑰一鍵安裝。
官方文檔
Exporting Your Developer Profile - Apple Developer
補充
- 同步 Keychain(iCloud 鑰匙串)可自動同步證書私鑰,但描述文件仍需手動導入或 Xcode 自動下載。
- 新電腦首次構建前,確保 Xcode → Preferences → Accounts 添加 Apple ID 並下載手動簽名資源。