在macOS Big Sur 12.3.0上通过cli/fastlane运行ui测试时,Xcode 12.5.0
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.
需要更新哪些内容?
它是通过敲击";安装组件";但是,我需要弄清楚到底要安装什么,以及是否可以通过cli 完成
正如@VictorGazotti所说,打开Xcode。当它提示您安装附加工具时,单击";安装">
请重试生成。