此 Mac 上安装的 CoreSimulator 框架版本已过时,且此版本的 Xcode 不支持

2024-03-11

在 macOS Big Sur 12.3.0、Xcode 12.5.0 上通过 cli/fastlane 运行 ui 测试时

 xcodebuild -showBuildSettings -workspace ./MyWorkspace.xcworkspace -scheme MyScheme-UITests
xcodebuild[88311:3500544]  DVTErrorPresenter: Unable to load simulator devices.
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
Failure Reason: The version of the CoreSimulator framework installed on this Mac is out-of-date and not supported by this version of Xcode.
Recovery Suggestion: Please ensure that you have installed all available updates to your Mac's software, and that you are running the most recent version of Xcode supported by macOS.
--
CoreSimulator is out of date. Current version (732.18.6) is older than build version (757.5.0).
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
--
xcodebuild[88311:3500544]  iOSSimulator: [SimServiceContext sharedServiceContextForDeveloperDir:error:] returned nil (Error Domain=DVTCoreSimulatorAdditionsErrorDomain Code=3 "CoreSimulator is out of date. 
Current version (732.18.6) is older than build version (757.5.0)." 
UserInfo={NSLocalizedDescription=CoreSimulator is out of date. Current version (732.18.6) is older than build version (757.5.0).}). Simulator device support disabled.

需要更新什么?

通过点击“安装组件”已修复 https://developer.apple.com/forums/thread/666924?answerId=648561022#648561022但是我需要弄清楚到底要安装什么以及是否可以通过 cli 完成


正如@VictorGazotti 所说,打开 Xcode。当提示您安装其他工具时,单击“安装”。

再次尝试构建。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

此 Mac 上安装的 CoreSimulator 框架版本已过时,且此版本的 Xcode 不支持 的相关文章

随机推荐