ios - 我的测试目标中没有这样的模块 'XXX'

标签 ios swift unit-testing

我正在尝试使用新的 swift @testable 导入将我的主要目标导入到测试目标中。但我收到此错误:

enter image description here

我还启用了可测试性 this post建议。

enter image description here

最佳答案

就我而言,问题出在项目名称中的点。点必须替换为下划线。

替换 .对于_

关于ios - 我的测试目标中没有这样的模块 'XXX',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35033690/

相关文章:

ios - iOS 应用程序启动屏幕中的 UIViewController

swift SpriteKit : Use of unresolved identifier "player"?

用于 JUnit 测试的 Java SVNKit Mock

ios - 为什么 subview Controller 的 View 和 subview 不调整大小?

ios - 完全禁用 UIRefreshControl - iOS

ios - 自定义 TableView 单元格出列 fatal error : unexpectedly found nil

ios - 选中单元格时如何显示复选标记

ios - 使用 UIPicker 从关系数据库中选择数据?

angularjs - 如何使用 Jasmine 在 Angular JS 工厂中测试变量

visual-studio - 是否有任何.runsettings文档?