【问题标题】:Error: The test runner exited with code -1 before checking in错误:测试运行程序在签入前以代码 -1 退出
【发布时间】:2021-11-21 17:39:37
【问题描述】:

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

Xkalq.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
  )
)

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

关于我的系统: macOS Catalina 版本 10.15.7 (19H2)
MacBook Pro(13 英寸,2010 年中)
处理器 2.4 GHz Intel Core 2 Duo
内存 4 GB 1067 MHz DDR3
显卡 NVIDIA GeForce 320M 256 MB

【问题讨论】:

    标签: xcode unit-testing xctest


    【解决方案1】:

    我终于找到了原因,似乎 Xcode 11.7 是支持在 Catalina 上运行的最后一个版本
    (无需任何额外的手动操作)。

    但在 iOS 设备上运行测试是可行的(无需 macOS 更新)。

    请告诉 Apple 改进他们的错误信息 :-(

    【讨论】:

      猜你喜欢
      • 2021-11-18
      • 1970-01-01
      • 1970-01-01
      • 2013-03-24
      • 1970-01-01
      • 2021-03-11
      • 2017-11-14
      • 1970-01-01
      • 2018-12-03
      相关资源
      最近更新 更多