facebook twitter hatena line email

Unity/開発環境/iOS

提供: 初心者エンジニアの簡易メモ
2021年8月13日 (金) 15:16時点におけるAdmin (トーク | 投稿記録)による版 (iPhoneのシミュレーターが表示されない場合)

移動: 案内検索

自動プラグイン追加する場合

  • 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を指定する。