【发布时间】:2016-12-29 14:26:37
【问题描述】:
我正在尝试通过 Cocoapods 1.1.1 将 Firebase 导入我的 Xcode 文件。我的 pod 文件看起来像这样。
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Firebase Login' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Firebase Login
pod 'Firebase', '~> 3.11'
target 'Firebase LoginTests' do
inherit! :search_paths
pod 'Firebase'
end
target 'Firebase LoginUITests' do
inherit! :search_paths
# Pods for testing
end
end
我也试过了。
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Firebase Login' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Firebase Login
target 'Firebase LoginTests' do
inherit! :search_paths
pod 'Firebase'
end
target 'Firebase LoginUITests' do
inherit! :search_paths
# Pods for testing
end
end
之后,我在终端中输入了 pod install ,这就是我得到的。
Analyzing dependencies
[!] Unable to find a specification for `FirebaseAnalytics (= 3.6.0)` depended upon by `Firebase/Core`
这是我做错了什么还是 Firebase 本身的错误?如果是我,如果有人能帮我解决这个问题,我将不胜感激。
【问题讨论】:
标签: ios xcode firebase cocoapods