xcode 手工下载安装模拟器runtime

原文地址

Install and manage Simulator runtimes from the command line

Download the Simulator runtime you want to install from the Apple Developer website. Then follow these steps with the command line to install it:

  1. Select a version of Xcode.
  2. Run the first launch experience to install the required system components, including simctl.
  3. Install the Simulator runtime with simctl.

simctl verifies the signature of the downloaded Simulator runtime, and then installs it in a secure location on your computer.

For example:

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

 xcodebuild -runFirstLaunch   

 xcrun simctl runtime add “~/Downloads/watchOS 9 beta Simulator Runtime.dmg”

Tip

To learn more about additional runtime management features, run xcrun simctl runtime.

To download and install all the platforms that the Xcode version you selected supports, use the -downloadAllPlatforms option on xcodebuild.

    xcodebuild -downloadAllPlatforms

To download and install Simulator runtimes for a specific platform, use the -downloadPlatform option and specify the platform.