为有牺牲多壮志,敢教日月换新天。

Xcode16升级后,如何直接安装iOS 18 Simulator

热烈欢迎,请直接点击!!!

进入博主App Store主页,下载使用各个作品!!!

注:博主将坚持每月上线一个新app!!

 

苹果官方下载链接:

操作系统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文件,比如:

https://download.developer.apple.com/Developer_Tools/iOS_18_beta_5_Simulator_Runtime/iOS_18_beta_5_Simulator_Runtime.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,将已存在的重复条目删除后,重新执行命令。

 

posted @ 2024-08-07 22:52  为敢技术  阅读(96)  评论(0编辑  收藏  举报