4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Unityで作成したアプリをiOS AppのTestFlightで実装する

4
Posted at

Unityで作成したAppをiOSでデプロイする

個人的に、自宅でリアルなサーフィン体験ができるようなAppを開発中ですが、

せっかくUnityで作成したAppを多くの人に遊んでもらいたい!

そこで、iOSでdeployを試みたのですが、丸1日ほどハマり倒したので、自分の備忘録&後続する方のためにまとめておきました。

1 Apple Developerにアカウントを作成する

iOS Appを作成するためには、Apple Developerでアカウントを作成する必要があります。
登録費用がかかります。

2 Apple Developerで手続きを行う

Apple Developerでの手続きに関しては、[iPhone] iOSアプリを登録、申請して公開するまでによくまとまっていますので、下記についてはこちらを見ながら適宜進めてください。
注意点のみを書いておきます。

1 iOS Certificate(証明書)の発行

今回はTest Flight用の申請を行うため、Distributionのみを発行します。

2 App Identifiersの作成

固有のIdentificationを作成します。

3 Devicesの登録

開発に使用するデバイスを登録します。

4 Provisioning Profileの作成

Provisioning Profileを設定します。後ほどXcodeでの設定で使用するので、Profile完成後はダウンロードしておきます。

3 Unityの設定

1 Build Settings

Image from Gyazo
iOSでBuildできるように、Buildが表示されない場合はSwitch Platformしておく。

2 Player Settings

Image from Gyazo
PlayerSettings>Player>OtherSettings>Identificationに追記する。
Bundle Identificationはこのアプリ固有のものを設定。
Profile TypeはDistributionを選択。

4 Xcodeの設定

1 General

Identity

Image from Gyazo
App IDの入力を間違えないように。
Versionの表記とBUildの表記は、1.0.0のように表記する。

Deployment Info

Image from Gyazo
Appの仕様に応じて変更する。

App Icon

Image from Gyazo
矢印をクリックし、
Image from Gyazo
Iconを作成し、貼り付ける。
1024ptがないと、Deployができないので、必ず作成する。

2 Signing & Capabilities

Image from Gyazo
Provisioning Profileには、Apple DeveloperのProvisioning Profileでダウンロードした「.mobileprovision」ファイルをインポートする。

3 info

Image from Gyazo
一番下の項目を選択し、+マークをクリックすると新規の項目を追加できる。
「App Uses Non-Exempt Encryption」を選択する。

4 Archives

上記までの設定が終了したら、メニューバーからProduct>Archivesを選択する。
作成が終了すると、Organizer windowが立ち上がる。
(立ち上がらない場合は、メニューバーのWindow>Organizerから立ち上げられる。)
Image from Gyazo
Validateを選択。

Image from Gyazo
Nextの選択で問題。

Image from Gyazo
Profileでダウンロードした「.mobileprovision」ファイルを選択し、Next。

Image from Gyazo
基本設定が終了したら、Validationを開始。

Image from Gyazo
 Validationが終了したらdone。

Image from Gyazo
続いて、Distributeを選択。

Image from Gyazo
App Store Connect を選択。

Image from Gyazo
Upload を選択。

Image from Gyazo
迷わずにNext。

Image from Gyazo
Profileでダウンロードした「.mobileprovision」ファイルを選択し、Next。

Image from Gyazo
Uploadを選択。

Image from Gyazo
Uploadが進行中…

Image from Gyazo
Upload終了。

App Store ConnectのMy Appを確認。
Image from Gyazo
1日ほど経つと、

Image from Gyazo
ビルドが選択可能となり、

Image from Gyazo
Uploadしたビルドを選択できるようになります。

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?