【发布时间】:2021-04-30 10:29:50
【问题描述】:
在 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.
什么需要更新?
It was fixed by tapping "Install components" 但是我需要弄清楚到底要安装什么以及是否可以通过 cli 完成
【问题讨论】:
-
我尝试删除 Xcode 并重新安装它。我仍然遇到同样的错误。
-
我尝试在迁移过来的旧 Mac 上运行模拟器。它工作正常,显示所有设备。它也在运行大苏尔。我没有尝试 Xcode,这是我得到错误的地方。我只需要让模拟器工作。
-
你试过打开xcode吗?它应该要求您安装组件
-
正如 Ted 所说,我刚刚在更新后打开了我的 xcode 并点击了“安装”选项。在此之后,我尝试再次构建并且一切正常
-
我在看到这个更新后又试了一次,我也得到了安装选项。问题已解决。它一定是 OS/Xcode 更新,因为它以前没有这样做。
标签: ios simulator xcode-ui-testing fastlane xcode12.5