1.去開發(fā)者官網(wǎng)下載安裝包 https://developer.apple.com/download/all/?q=Xcode 使用瀏覽器下載成功后
2.打開終端通過命令添加到xcode
命令如下:
1.sudo xcode-select -s /Applications/Xcode.app(輸入開始密碼)
2.xcodebuild -runFirstLaunch (等待一小會)
3.xcrun simctl runtime add "/Users/xxxxx/Downloads/iOS_17.0.1_Simulator_Runtime.dmg"
3.執(zhí)行完畢后狭归,到xcode 快捷鍵 command + 沟娱, 查看安裝是否成功,如下圖證明安裝成功
4.官網(wǎng)解決方案https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes