jubilee

Programing, Books and more...

AdHocビルド版のビルドを行う

TestFlightで配布できるように、アプリをAdHoc版でビルドする方法。

AdHoc用のプロビジョニングプロファイルを作成する

デバイス登録

配布したいデバイスが未登録の場合に実施。
端末がそばにない場合は、Test Flightで収集しあとから登録でも可。

  1. Apple Developer にログイン
  2. Certificates, Identifiers & Profiles –> iOS Apps –> Devices
  3. 右上の+をクリック
  4. Register DeviceでName:(任意)とUDIDを登録
  5. Register Multiple Devicesでは、ファイルに書くことで一括登録が可能

プロビジョニングプロファイルの作成

  1. Apple Developer にログイン
  2. Certificates, Identifiers & Profiles –> iOS Apps –> Provisioning Profiles
  3. Distribution –> 右上の+
  4. Distribution –> Ad Hocを選択 –> App IDを選択
  5. Select certificates. –> 証明書を選択(タイプはApp Store and ad Hoc)
  6. Select devices. –> 配布したい端末を選択
  7. Name this profile and generate. –> Profile Name:(任意の名前)
  8. Generate
  9. Download
  10. ダウンロードした〜.mobileprovisionをクリックし、キーチェーンへ登録

確認

  1. Xcode –> Preferences –> Accounts –> ViewDetails
  2. プロビジョニングプロファイルの一覧に表示されること

アドホック用の.ipaをビルド

  1. ビルドするプロジェクトでXcodeを起動
  2. Product –> Archive(実機接続、またはiOS Deviceを選択していれば可。シュミレーター不可)
  3. Organaizerが開いたら、ビルドしたアプリを選択
  4. Distribute…をクリック
  5. Save for Enterprise or Ad Hoc Deploymentを選択
  6. Provisioning Profile: 作成したAdHoc用のプロビジョニングプロファイルを選択
  7. Exportで.ipaが作成される