我不知道目前是否有人遇到同样的问题,但我尝试在我的应用中导入Firebase,但它只显示" Firebase"没有这样的模块。有人可以帮帮我吗? This is the error i get every time.
编辑:(对不起noobie错误),这是Podfile中的代码:
target 'CosplaCentral' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for CosplaCentral
target 'CosplaCentralTests' do
inherit! :search_paths
# Pods for testing
end
target 'CosplaCentralUITests' do
inherit! :search_paths
# Pods for testing
pod 'Firebase'
end
end
答案 0 :(得分:1)
使用下面的代码更新您的pod文件,然后在Terminal
中直接转到您的项目文件并执行pod install
(确保在执行此操作时关闭Xcode)然后再次加载项目然后重新输入import Firebase
platform :ios, '8.0'
target 'CosplaCentral' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for LT Sounds
pod 'Firebase'
pod 'Firebase/Auth'
end