Install and manage Simulator runtimes from the command line
You can download and export the simulator runtimes images in Terminal with the xcodebuild
command.
Note
The simulator runtimes are available on Apple Developer website, but will no longer be posted through the website in future updates. Please use the xcodebuild -exportPath
option.
Then follow these steps in Terminal to install a simulator runtime:
In Terminal, use
xcode-select -s <path-to-Xcode>
to select the version of Xcode that you want to add the simulator runtime to.Run
xcodebuild -runFirstLaunch
to install the required system components, including thesimctl
utility.Run
xcrun simctl runtime add "~/Downloads/<simulator-runtime-name>.dmg"
to install the simulator runtime.simctl
verifies the signature of the downloaded simulator runtime, and installs it on your Mac.
For example:
xcode-select -s /Applications/Xcode-beta.app
xcodebuild -runFirstLaunch
xcrun simctl runtime add "~/Downloads/watchOS 9 beta Simulator Runtime.dmg"