LoginSignup
1
1

More than 1 year has passed since last update.

iOS16を旧Xcodeでビルドする!

Last updated at Posted at 2022-10-12

こんな方向け

  • まだXcode13を使ってるけど、iOS16を持つ実機でビルドしたい。
  • 新しいバージョンXcode14のDeviceSupportからiOS16用のDeviceSupportフォルダをXcode13に入れたけど、ビルドできない。

解決できるエラー

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.

開発環境

macOS: Monterey 12.5 Intel
Xcode: 13.2.1
iOS: 16.0.3

結論

  • iOS16からDeveloperModeというのが追加されている、これをOnにしてないとDeviceSupportを入れてもビルドできないようです!

もっと詳しく!

  1. XcodeをKillしておく。
  2. DeviceSupportフォルダを手に入れる。(こちらからダウンロードしてもいい。)
    • Xcode14をダウンロードする
    • ダウンロードできたら以下から16.0のフォルダをコピー!
      • /Applications/Xcode14.0.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  3. 次に旧XcodeのDeviceSupportディレクトリーに移動し、先ほどコピペしたフォルダをコピペ
    • /Applications/Xcode13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  4. iPhoneをUSB接続すると以下のダイアログが表示される。
    • これはOSのアップデートではなく、一部データがインストールされるだけなので、ビビらずインストールしましょう!(詳細
      image.png
  5. 次にiPhoneのSetting>Privacy>Developer Modeを開き、ONにしましょう!
  6. これでXcode13を開き、RUNすればビルドできるはずです!
    • うまくいかない場合は、MacとiPhoneを再起動すると直るかも!

お疲れ様でした!

1
1
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
1
1