所以我在Swift中使用单元测试很新。在我的项目中,我使用了几个安装在我的可可豆中的框架,但是当我准备在我的测试文件中编写一些代码时,我总是得到这个错误。 missing module: Firebase, Eureka, ImageRow
如何修复单元测试文件中缺失的模块?
我试图导入@testable上述这些模块,但不知何故,它不承认该模块。它一直说module not found
。我也尝试删除inherit search paths
中的我的容器,并且仍然询问我是否需要导入这些模块。这是我的可可豆荚。
target 'ProjectRed' do
use_frameworks!
pod 'Firebase'
pod 'Eureka'
pod 'ImageRow'
pod ‘Firebase/Database’
pod ‘Firebase/Storage’
# Pods for ProjectRed
target 'ProjectRedTests' do
inherit! :search_paths
# Pods for testing
end
target 'ProjectRedUITests' do
inherit! :search_paths
# Pods for testing
end
end