1.去开发者官网下载安装包 https://developer.apple.com/download/all/
2.打开终端通过命令添加到xcode
命令如下:
sudo xcode-select -s /Applications/Xcode.app
xcodebuild -runFirstLaunch
xcrun simctl runtime add "~/Downloads/*OS_***_Simulator_Runtime.dmg"
3.打开xcode右上角菜单里的setttings-Platforms,可看到新装的模拟器