Xcode7でios8.4の実機がunavailableになる問題の対策

Xcode7 betaでiOSを8.3から8.4にアプデするとターゲット選択画面でunavailableになって実行できなくなる。

これはxcode7のdevice supportにiOS8.4が追加されていないため。

$ ls /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
6.0/ 7.0/ 8.1/ 8.3/
6.1/ 7.1/ 8.2/ 9.0 (13A4293g)/

xcode6だとこんな感じ。

$ ls /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
4.2/ 5.0/ 6.0/ 7.0/ 8.0/ 8.2/ 8.4 (12H141)/
4.3/ 5.1/ 6.1/ 7.1/ 8.1/ 8.3/

この"8.4 (12H141)"をxcode7のdevice supportに加える。

$ cp -a /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.4\ \(12H141\) /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

xcode-beta再起動すればOK.

ちなみに、8.x系の端末でDeployment Targetが9.0だと以下のようになる。