Error: The test runner exited with code -1 before checking in

Error: The test runner exited with code -1 before checking in

构建完成后没有问题,运行 Xcode 12.4 项目的测试失败并显示消息:

MyProject.app (10164) encountered an error (
  Early unexpected exit,
  operation never finished bootstrapping - no restart will be attempted. (
    Underlying Error: The test runner exited with code -1 before checking in.
    If you believe this error represents a bug,
    please attach the result bundle at /Users/admin/Library/Developer/Xcode/DerivedData/MyApp-gczfeuobxydqjrfbdhwzpqjsseyr/Logs/Test/Test-MyApp-2021.09.29_23-12-38-+0430.xcresult
  )
)

上面的消息是什么意思?!
(括号间距是我做的,为了便于阅读)

About My System: macOS Catalina version 10.15.7 (19H2)
MacBook Pro (13-inch, Mid 2010)
Processor 2.4 GHz Intel Core 2 Duo
Memory 4 GB 1067 MHz DDR3
Graphics NVIDIA GeForce 320M 256 MB

TK;DR; 要么将 MacOS 更新到最新版本,要么将 Xcode 降级到 11.7 版本。


终于找到原因了,好像是Xcode 11.7(或者说是SDK),是最后一个支持运行的版本在 Catalina 版本的 MacOS
上 (无需任何手动额外工作)。

但是 运行 测试 iOS 设备工作(没有 macOS 更新)。

有人请告诉 Apple 改进他们的错误消息:-(