转换为 swift 3 后 Tests.swift 文件中没有这样的模块“Firebase”

2024-01-02

将项目转换为 swift 3 后,我在 Test.swift 文件中收到此错误:

No such module 'Firebase'
Command/usr/bin/ditto failed with code 1 

这是否意味着我必须更新 firebase 框架?为什么会这样?

*应用程序仍然运行!

*这是 Pod 文件:

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

use_frameworks!

target 'TheTestingApp' do
pod 'Firebase' 
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
end

问题是你正在使用提到的可可足类 for TheTestingApp只是您还需要添加这些或可可足类你想用TheTestingAppTest

还清理您的项目:-CMD+SHIFT+K,然后运行pod install然后运行您的应用程序。

像这样的事情:-

use_frameworks!

target 'TheTestingApp' do

    pod 'Firebase' 
    pod 'Firebase/Auth'
    pod 'Firebase/Database'
    pod 'Firebase/Storage'

end

target 'TheTestingAppTests' do

    pod 'Firebase' 
    pod 'Firebase/Auth'
    pod 'Firebase/Database'
    pod 'Firebase/Storage'

end
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

转换为 swift 3 后 Tests.swift 文件中没有这样的模块“Firebase” 的相关文章

随机推荐