苹果官方下载链接:
【操作系统Operating Systems】:
https://developer.apple.com/download/
【应用Applications】:
https://developer.apple.com/download/applications/
【描述文件Profiles and Logs】:
https://developer.apple.com/bug-reporting/profiles-and-logs/
【更多More Downloads】:
https://developer.apple.com/download/all/
从更多中下载模拟器dmg文件,比如:
下载好之后,参考 Installing and managing Simulator runtimes 步骤安装:
//第一行如果报错,直接继续执行下面两行
sudo xcode-select -s /Applications/Xcode.app xcodebuild -runFirstLaunch xcrun simctl runtime add "~/Downloads/iOS_18_Simulator_Runtime.dmg"
运行 xcrun simctl runtime add
时如果出现类似如下错误:
D: 22A59611-EE3A-4386-9056-076B512C9941 iOS (18 - 21C62) (Unusable - Other Failure: Error Domain=SimDiskImageErrorDomain Code=5 "Duplicate of BFC13021-2F48-4F02-B05B-75313F47328D" UserInfo={NSLocalizedDescription=Duplicate of BFC13021-2F48-4F02-B05B-75313F47328D, unusableErrorDetail=})
可以打开 Xcode->Settings->Components,将已存在的重复条目删除后,重新执行命令。
标签:apple,Xcode16,Simulator,18,iOS,com,developer From: https://www.cnblogs.com/strengthen/p/18348016