要把 iOS App 安裝到裝置、提交 App Store 或上傳 TestFlight,通常會經過憑證、描述檔、簽章與打包等步驟。
可先在鑰匙圈中建立憑證簽署請求,再登入 Apple Developer 網站建立或下載描述檔。描述檔可分為特定 App 使用的專用檔,以及可給多個 App 使用的通用檔。
在 Xcode 的 target 中,把 code signing identity 改為自己的身分。完成後即可從 scheme 選擇裝置,執行、除錯或安裝 App。
使用 Product 的 Archive 功能可產生 xcarchive,並顯示在 Organizer 的 Archives 中。接著可選擇提交到 App Store,或保存為企業、Ad Hoc 等用途的 ipa。若要上傳 TestFlight,可登入 TestFlight 網站,新增建置並上傳該 ipa。