Download the Simulator runtime you want to install from the developer website. Then follow these steps with the command line to install it:
-
Select the version of Xcode for installation.
-
Run the first launch experience to install the required system components, including
simctl
. -
Install the Simulator runtime with
simctl
.
For example:
sudo xcode-select -s ~/Applications/Xcode.app
xcodebuild -runFirstLaunch
xcrun simctl runtime add "~/Downloads/watchOS_9.1_Simulator_Runtime"
simctl
verifies the signature of the downloaded Simulator runtime, and then installs it in a secure location on your computer.
Use the following to learn more about additional runtime management features:
xcrun simctl runtime
网友评论