facebook twitter hatena line email

「Unity/開発環境/iOS」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(手動でプラグインを導入したときに、file not foundとなる場合)
(iPhoneのシミュレーターが表示されない場合)
(同じ利用者による、間の2版が非表示)
行12: 行12:
  
 
==iPhoneのシミュレーターが表示されない場合==
 
==iPhoneのシミュレーターが表示されない場合==
Build Settings/Architectures/Supported PlatformsをiOSへ
+
Xcode/Target/Build Settings/Architectureの
 +
*Supported PlatformsをiOSへ
 +
*Architectureをarm64から(armv7,arm64)へ
  
http://kaki.work/blog/2020/06/28/unity-%E3%81%A7%E9%96%8B%E7%99%BA%E3%81%97%E3%81%9F%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%82%92xcode-%E3%81%A7%E9%96%8B%E3%81%8F%E3%81%A8-simulator-%E3%81%8C%E8%A1%A8%E7%A4%BA/
+
==ビルド時に"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を指定する。