gpt4 book ai didi

ios - 单元测试未在 IOS swift 5 上运行

转载 作者:行者123 更新时间:2023-12-05 05:55:34 29 4
gpt4 key购买 nike

我正在 Xcode 13 (13A233) 中实现单元测试。我写了简单的测试,但我的 xcode 无法在这个项目上运行测试。在其他项目上它运行良好。它会产生错误

Assertions: System: Test runner never began executing tests after launching. If you believe this error represents a bug, please attach the result bundle at /Users/apple/Library/Developer/Xcode/DerivedData/MunchON-eeidlzwuounsfvbrmieuosqzpsih/Logs/Test/Test-MunchON (Staging)-2021.10.05_11-35-54-+0500.xcresult

我无法解决这个问题。我已经检查过的其他问题:

最佳答案

尝试删除 DerivedData

  1. 打开 Xcode > 首选项 > 位置
  2. 点击箭头打开 DerivedData 文件夹
  3. 从 DerivedData 文件夹中删除所有内容
  4. 重新打开 Xcode 项目

附言DerivedData 包含缓存数据,例如索引文件等

仅供引用,这是安全的

关于ios - 单元测试未在 IOS swift 5 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69446185/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com