SyntaxHighlighter

2014年9月18日木曜日

iOS8.0をXcode5.1でデバッグする方法

テスト端末のiOSを8.0にアップデートしたところ、Xcodeで認識しなくなった。
デバイスの選択で
[プロジェクト名] > [iOS Device]
となり、端末が選択できない。

まず、以下の場所を確認
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
この場所にサポートしているiOSのバージョン毎のディレクトリーがあるが、
7.1 (11D167)」はあるが、やはり8.0は無い。

アップデートを待つのも一つ。

ある掲示板に次のような記述があった。リンクを作るそうだ。
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup‌​port/7.1\ (11D167) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup‌​port/8.0\ (12A4265u)

試してみたところ、一応動いた。
Xcode6がリリースされるまでこれで待とうと思う。

ちなみに、Xcode6のベータ版をインストールしている場合は、下記で動くそうだ。
sudo ln -s /Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.0\ (12A4331d) /Volumes/MAVERICKS/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.0\ (12A4331d)