升級(jí)Xcode15.1之后,需要安裝iOS_17.2_Simulator
開發(fā)者官網(wǎng):https://developer.apple.com/download/all/?q=ios
下載 iOS 17.2 Simulator Runtime

image.png
下載完成后,執(zhí)行以下命令
//1、
sudo xcode-select -s /Applications/Xcode.app(輸入開始密碼)
//2、
xcodebuild -runFirstLaunch
//3、
xcrun simctl runtime add '/Users/xxxxx/Downloads/iOS_17.2_Simulator_Runtime.dmg'
然后打開xcode查看

image.png
就已經(jīng)安裝好了,可以調(diào)試了