iOS Xcode手动添加iOS模拟器运行时

官方文档

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:

  1. In Terminal, use xcode-select -s <path-to-Xcode> to select the version of Xcode that you want to add the simulator runtime to.

  2. Run xcodebuild -runFirstLaunch to install the required system components, including the simctl utility.

  3. 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"
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容