LoginSignup
2
2

More than 1 year has passed since last update.

Xcode14.0でiOS15.7の機器にアプリをビルド・インストールする方法

Last updated at Posted at 2022-09-21

はじめに

先日Xcodeをバージョン14.0にアップデートしたところ、デバッグ用に使っていた端末(iPhone6s)でアップデートできる最新バージョン(iOS15.7)にXcodeが対応しておらず、ビルドをしようとすると、
"This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility."
(デバイスのOSバージョンがインストールされているXcodeのバージョンと互換性がない場合、この操作(ビルド)は失敗します。互換性を感知するためにはMacと端末の再起動を行ってください。)

と出るようになりました。ちなみに再起動をしても現象は変化しません。そもそも互換性がないからです。

目次

  1. Xcodeの対応iOSバージョンを確認してみる
  2. iOS15.7のサポートファイルをダウンロード
  3. iOS15.7のサポートファイルを解凍・移動
  4. 参考文献

①Xcodeの対応iOSバージョンを確認してみる

互換性がないことを確認してみましょう。
ターミナルを起動して
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
を実行。移動したら
ls
でDeviceSupportディレクトリの中身を確認してみましょう。

私の環境では
11.0 11.4 12.3 13.2 13.6 14.2 15.0 15.6 11.1 12.0 12.4 13.3 13.7 14.3 15.2 11.2 12.1 13.0 13.4 14.0 14.4 15.4 16.0 11.3 12.2 13.1 13.5 14.1 14.5 15.5
と表示されました。どうやら15.7はないようです。

②iOS15.7のサポートファイルをダウンロード

https://github.com/JinjunHan/iOSDeviceSupport
から15.7対応のサポートファイルをダウンロードすることができます。

③iOS15.7のサポートファイルを解凍・移動

ダウンロードしたzipファイルを解凍し、
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
ディレクトリに移動しましょう。これでビルド、アプリインストールがiOS15.7のデバイスにできるようになります。

参考文献

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2