Xcode15 download iOS17 always interrupted solution

1. Problem description

There is a difference between the current Xcode 15 installation and the previous one: the previous Xcode installation came with ide, sdk and other tool packages, and you can start development after installation, while the latest packages are separated into different package, here is the ios development package as an example: Xcode_15.xip and iOS_17_Simulator_Runtime.dmg

After downloading or updating Xcode normally, Xcode will prompt you to download iOS 17. As we all know, Xcode’s traditional performance prompts you for network problems halfway through downloading, and you can only download it again, which is very torture.

2. Solution

You can use the command line to solve the problem. The specific steps are as follows:

First download from the official website iOS_17_Simulator_Runtime.dmg , after the normal download is in the Downloads folder

Secondly, after downloading, open the terminal and type the command, paying attention to the path

sudo xcode-select -s /Applications/Xcode.app

xcodebuild -runFirstLaunch

xcrun simctl runtime add "~/Downloads/iOS_17_Simulator_Runtime.dmg"

Finally, open Xcode and the installation is complete.

Guess you like

Origin blog.csdn.net/qq_43441647/article/details/133268353