facebook twitter hatena line email

「Unity/実機/iOS」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(This iPhone 6 is running iOS 11.4.1 (15G77), which may not be supported by this version of Xcode.エラー)
(This iPhone 6 is running iOS 11.4.1 (15G77), which may not be supported by this version of Xcode.エラー)
行45: 行45:
 
  $ ls  
 
  $ ls  
 
  10.0.2 (14A456) 10.3.1 (14E304)
 
  10.0.2 (14A456) 10.3.1 (14E304)
 +
もしくは
 +
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
 +
$ ls
 +
10.0 10.1 10.2
 
#https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport から
 
#https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport から
#上記DIRに11.4.1をいれてビルド、もしくはxcode再起動すれば良い。
+
#上記どちか存在するDIRに11.4.1をいれてビルド、もしくはxcode再起動すれば良い。
 
参考:https://qiita.com/_CHUBURA/items/ffd280e50ed623989045
 
参考:https://qiita.com/_CHUBURA/items/ffd280e50ed623989045

2018年9月29日 (土) 12:48時点における版

iOS実機で動かす

  • File/BuildSettingsを選択
  • iOSを選択
  • OpenDownloadPageからプレイヤーをDL
  • Edit/ProjectSetting/Playerを選択しPlayerSettingsを開く
  • Inspector/端末マークタブ選択/OtherSetting
  • Bundle Identifierの"com.company.ProjectName"を適宜変更する(デフォから変えないとbuild時にエラーとなる)
  • File/BuildSettingsからbuildボタンを押しiPhone用のxcodeプロジェクトDir一式を作成する
  • あとはxcodeプロジェクトを実機で動作させる方法と同じ
  • 最新xcodeを起動する
  • 縦向き・横向きで確認する

No `Podfile' found in the project directory.エラー

cocoapodsが入ってるか確認。

$ sudo gem update --system 
$ sudo gem install cocoapods
$ pod setup
> Setup completed

Consider adding the following to ~/.profile: エラーの場合

デフォだとja_JP.UTF-8になるっぽいのでutf8に変更してあげる

$ vi  ~/.profile
export LANG=en_US.UTF-8
$ source ~/.profile
$ echo $LANG
en_US.UTF-8

After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. エラーの場合

xcodeのプロジェクトのdirに入って以下実行

$ pod repo update
$ pod install

Bundle Identifier has not been set up correctly

  • 上記のBundle Identifierがデフォルトの"com.company.ProjectName"だと起こるエラー。適宜変更する

Code Signing Error: Signing for "Unity-iPhone" requires a development team. Select a development team in the project editor.

  • xcodeのgeneralのteamが選択されてない

Verify the Developer App certificate for your account is trusted on your device. Open Settings on and navigate to General -> Device Management, then select your Developer App certificate to trust it.

  • 実機の設定/一般/デバイス管理/アプリを許可する

This iPhone 6 is running iOS 11.4.1 (15G77), which may not be supported by this version of Xcode.エラー

開発端末のxcodeの中身を確認する

$ cd ~/Library/Developer/Xcode/iOS\ DeviceSupport/
$ ls 
10.0.2 (14A456)	10.3.1 (14E304)

もしくは

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
$ ls 
10.0		10.1		10.2
  1. https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport から
  2. 上記どちか存在するDIRに11.4.1をいれてビルド、もしくはxcode再起動すれば良い。

参考:https://qiita.com/_CHUBURA/items/ffd280e50ed623989045