【发布时间】:2016-05-19 04:55:52
【问题描述】:
也许这是一个 n00b 问题,但我还是要问它。我按照说明通过 CocoaPods 将 Firebase 添加到 Swift 应用程序。一切似乎都运行良好。这是我的 Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'FirebaseDemo2' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for FirebaseDemo2
pod 'Firebase'
end
当尝试将 Firebase 模块导入 AppDelegate 时,起初 Xcode 抱怨找不到它,但项目构建得很好。但是,当尝试添加 FIRApp 时,它会因为找不到类而无法构建。
Podfile 与 .xcodeproj 位于同一目录中,我正在 Xcode 中打开 .xcworkspace 文件。这真的让我很困惑。有人可以看到我做错了什么吗? CocoaPods 是否配置错误?
【问题讨论】:
标签: ios swift firebase cocoapods