iOS プラットフォームに向けてプロジェクトをビルドするとき、Unity は XCode プロジェクトを含むフォルダーを作成します。このプロジェクトはコンパイルのため、およびデバイスに向けてアプリをデプロイするために署名するために必要であり、ゲームを App Store で配布するための準備およびバンドル化を可能にします。
iOS プロジェクトをビルドする前に Player 設定で Bundle Identifier を設定してください。さらにゲームをデバイスまたはシミュレータで実行するための SDK バージョン を選択します。
Unity ランタイムおよび Objective-C を統合するコードがここに格納されます。格納されるファイルである main.mm
および AppController.mm
がアプリケーションのエントリーポイントです。UnityAppController から派生した独自の AppDelegate を作成することが可能です。AppController.h
を含むプラグインを使用している場合は UnityAppController.h
をかわりに含むことができます。もし Plugins/iOS フォルダーに AppController.mm/h
ファイルがある場合は UnityAppController.h
へマージするかリネームしてください。
さらに iPhone_Profiler.h
ファイルにより内部プロファイルを有効にする条件のコンパイラを定義します。このフォルダーは頻繁に変更しないコードのためのフォルダーであり、カスタムクラスをここに配置できます。append モードが選択されたとき、ビルド間でのこのフォルダーに対する変更は保存されますが、この関数は複数のビルドターゲットはサポートせず、Libraries
フォルダーの構造を固定する必要があります。
内部プロファイルは速く、干渉せず、また基本的な情報をフィードしてくれます。
ここにはシリアライズされたゲームアセット、および .NET アセンブリ (dll
ファイル) をフルコードまたはストリッピングが有効のときはメタデータを格納しています。machine.config
ファイルはセキュリティ、Web リクエスト、その他のさまざまな .NET サービスの設定です。
ここには ATM アセンブラ( s
files )に変換された .NET アセンブリが格納されます。libiPhone-lib.a
ファイルは Unity ランタイムスタティックライブラリであり、RegisterMonoModules.cpp
が Unity のネイティブコードを .NET でバインドします。このフォルダーのコンテンツは各ビルドごとにリフレッシュされ、修正すべきではありません
独自のカスタムファイルはここに格納できます。
アイコンとスプラッシュスクリーン( png
ファイル)で、これらのファイルは自動的にUnityで管理されています。Player Settings で設定することができます。
info.plist
は Unity の Player Settings を介して管理されます。このファイルは Player を作成するときに、置き換えでなく、更新されます。本当に必要なときを除いて修正すべきではありません。
これらには XCode プロジェクトファイル (xcodeproj
ファイル)、および Project Navigator でのみ表示されるフレームワークリンクが含まれます。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.