Xcode 7をiOS 10で使用したい。
私が理解しているように、iOS 10ベータでの作業にはXcode 8ベータが必要なので、Xcodeをアップグレードする必要があります。しかし、私のコードは新しいコンパイラーでビルドできないので、Xcode 7を使い続けたいと思います。
どうすればそれを達成できますか?
Xcode 7をiOS 10で使用したい。
私が理解しているように、iOS 10ベータでの作業にはXcode 8ベータが必要なので、Xcodeをアップグレードする必要があります。しかし、私のコードは新しいコンパイラーでビルドできないので、Xcode 7を使い続けたいと思います。
どうすればそれを達成できますか?
回答:
Xcode 8 BetaのDeveloperDiskImageを使用する必要があります。このXcode 8 Betaアプリを抽出し、iOS 10のDeveloperDiskImageをXcodeフォルダーにコピーします。
XcodeをDownloads / Xcode-beta.appに抽出するとします。
cp -r /Users/fanruten/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) /Applications/Xcode_7.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
DeveloperDiskImageをコピーしたら、Xcodeを起動してiOSデバイスをMacに接続する必要があります。
編集:
標準のXcodeインストールでは、ソフトリンクを作成できます。
sudo ln -s \
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5309d\) \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
kAMDMobileImageMounterDeviceLocked
ます。まだ回避策が見つかりません。
必要なOSのフォルダーをコピーして貼り付けるだけで、Xcodeの古いビルドで任意のSDKを使用できます。また、同じ名前のアプリを2つ持つことはできません。Xcode7とXcode 8に名前を変更してください。
Xcode 8アプリケーションアイコンを右クリック / Ctrlキーを押しながらクリックして、パッケージのコンテンツを表示し、この場所に移動して、iOS 10.0またはWatchOS 3.0フォルダーなどをコピーします。
/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport /Applications/Xcode8.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport
次に、Xcode 7の同じ場所に移動し、フォルダーを貼り付けます。
/Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport /Applications/Xcode7.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport
Xcode 7を再起動します。Xcodeがシンボルなどを再構築するまで、しばらく待つ必要があります。
私にとって、上記の提案はどれもうまくいきませんでした。
代わりに、私はこの場所に移動しました(CMD + SHIFT + Kを押して、以下のパスを挿入します)(ファインダーを介して)
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
そして10.0(14A5339a)
、開発者ディスクイメージを含むフォルダをコピーしました。次に、それを貼り付けました
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
編集:私はXcode7(バージョン7.3.1-7D1014)、iOS 10パブリックベータ6(14A5345a)を使用しています-これは2016年8月19日にリリースされます
Pascal && Fanrutenは正しい。
8月12日、Xcodeバージョン7.3.1(7D1014)およびiOS 10.0(14A5309d)、iPhone6 Plusでテスト済み。
提案されたようにシンボリックリンクを作成しました(パスは少し異なります...以下を参照してください)。ただし、Xcodeバージョン8.0ベータ4(8S188o)へのリンクで動作します。
完全性のためだけに:
ベータ4
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5322e\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
ベータ5
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5339a\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5335a\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
これはXCode 9とiOS 11 Beta 1用です。
sudo ln -s \
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5278f\) \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0
wwdc2019後のXcode 10に対するXcodeバージョン11ベータの私の2セント:
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.0
Xcode 10でiOS 13ベータ版のiPhoneを使用できます。
ln -sの後、plsはXcodeを再起動します