我正在尝试为自定义框架运行我的测试,但出现此错误:
"xctest[75653:2358339] The bundle “Tests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle."
我使用 carthage 向框架添加了一些依赖项。这可能是问题所在吗?
最佳答案
- 从工作区内的依赖项中复制 xcodeprojs
- 在包含来自测试目标的库的 buildPhase/link 二进制文件中,单击 + 添加依赖项并从工作区中选择它们(你必须在那里有你的 cocoa 框架 + 依赖项)
- 命令 B
- 命令 U
关于ios - 构建 Swift 框架测试失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33356071/