Swift Firebase赢得';行不通
我不知道现在是否有人有同样的问题,但我正在尝试在我的应用程序中导入Firebase,但它只显示“没有Firebase的此类模块”。谁能帮帮我吗? 编辑:(为noobie错误感到抱歉),这是Podfile中的代码:Swift Firebase赢得';行不通,swift,xcode,firebase,Swift,Xcode,Firebase,我不知道现在是否有人有同样的问题,但我正在尝试在我的应用程序中导入Firebase,但它只显示“没有Firebase的此类模块”。谁能帮帮我吗? 编辑:(为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
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
使用下面的代码更新pod文件,然后在
终端中直接到项目文件并执行pod安装
(执行此操作时确保Xcode关闭),然后再次加载项目,然后重新键入导入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
提供一些代码(例如你的pod文件)编辑你的帖子并在你的pod文件中提供代码谢谢,我修复了帖子给你留下了一个答案:)非常感谢你,Konsy,你救了我!不用担心:)很高兴我能帮上忙