「Unity/開発環境/iOS」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→自動プラグイン追加する場合) |
(→iPhoneのシミュレーターが表示されない場合) |
||
(同じ利用者による、間の5版が非表示) | |||
行1: | 行1: | ||
==自動プラグイン追加する場合== | ==自動プラグイン追加する場合== | ||
− | [[Unity/GoogleMobileSDK/ライブラリ自動読み込み [ショートカット] を参考 | + | *[[Unity/GoogleMobileSDK/ライブラリ自動読み込み]] [ショートカット] を参考 |
*Assets/PlayServicesResolver/Editor/Dependencies.xmlなどのファイルを作成 | *Assets/PlayServicesResolver/Editor/Dependencies.xmlなどのファイルを作成 | ||
*exportしたxcodeプロジェクトを開く | *exportしたxcodeプロジェクトを開く | ||
行9: | 行9: | ||
*プラグインを導入するときは、xcodeにドラッグ&ドロップする。 | *プラグインを導入するときは、xcodeにドラッグ&ドロップする。 | ||
*その際に、copy items if neededで、Create groups | *その際に、copy items if neededで、Create groups | ||
− | *add to | + | *add to targetsからUnity-IPhoneのチェックを外し、UnityFrameworkを選択 |
+ | |||
+ | ==iPhoneのシミュレーターが表示されない場合== | ||
+ | Xcode/Target/Build Settings/Architectureの | ||
+ | *Supported PlatformsをiOSへ | ||
+ | *Architectureをarm64から(armv7,arm64)へ | ||
+ | |||
+ | ==ビルド時に"Build destination cannot be the same as the project root directory. == | ||
+ | To avoid project corruption, please create a new folder and use it as the build destination."エラーが出る場合== | ||
+ | プロジェクトと同じdirを、ビルド先に指定してるので、別のdirを指定する。 |
2021年8月13日 (金) 15:16時点における版
目次
自動プラグイン追加する場合
- Unity/GoogleMobileSDK/ライブラリ自動読み込み [ショートカット] を参考
- Assets/PlayServicesResolver/Editor/Dependencies.xmlなどのファイルを作成
- exportしたxcodeプロジェクトを開く
- 直下にPodfileがあることを確認。
- コマンドで"$ pod update"を行い、インストールする。
手動でプラグインを導入したときに、file not foundとなる場合
- プラグインを導入するときは、xcodeにドラッグ&ドロップする。
- その際に、copy items if neededで、Create groups
- add to targetsからUnity-IPhoneのチェックを外し、UnityFrameworkを選択
iPhoneのシミュレーターが表示されない場合
Xcode/Target/Build Settings/Architectureの
- Supported PlatformsをiOSへ
- Architectureをarm64から(armv7,arm64)へ
ビルド時に"Build destination cannot be the same as the project root directory.
To avoid project corruption, please create a new folder and use it as the build destination."エラーが出る場合== プロジェクトと同じdirを、ビルド先に指定してるので、別のdirを指定する。