【发布时间】:2016-12-01 23:50:15
【问题描述】:
我正在研究 Google Analytics,Google 说我需要安装 Firebase 来处理 Google Analytics 操作。
我通过 Cocoapods 安装了 Firebase,并导入了 firebase.google.com 提供的属性列表 (.plist) 文件。
但是当我尝试通过 import Firebase 导入 Firebase 模块时,Xcode 说没有这样的模块并且自动完成建议 import FirebaseAnalytics。
如果我使用 FirebaseAnalytics 模块,我会收到如下所示的错误。我查看了this 问题,但没有一个答案能解决我的问题。
Pod 文件:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
target 'MyApp do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Firebase/Core'
target 'MyAppTests' do
pod 'Firebase/Core'
inherit! :search_paths
# Pods for testing
end
target 'MyAppUITests' do
inherit! :search_paths
# Pods for testing
end
end
【问题讨论】:
标签: swift firebase cocoapods firebase-analytics