0
我想通过Cocoapods 1.1.1将Firebase导入到我的Xcode文件中。我的pod文件看起来像这样。无法通过cocoapods将Firebase安装到我的Xcode项目中
# 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
之后,我输入荚在我的终端安装,这是我得到了什么。
Analyzing dependencies
[!] Unable to find a specification for `FirebaseAnalytics (= 3.6.0)` depended upon by `Firebase/Core`
这是不是我做错了或者是一个bug与火力地堡本身?如果是我,如果有人能帮我解决这个问题,我将不胜感激。
不幸的是,这是我在我的第一段代码确实,如果你错过了......我也尝试添加了火力地堡/验证和火力地堡/数据库,但它仍然给我这个“[!]无法找到”Firebase/Database“所依赖的FirebaseDatabase(= 3.1.1)的规范。”是否还有其他错误? –
删除您的Podfile.lock文件和Pods文件夹,并在您修复podfile时重新调用pod更新 –
我没有Podfile.lock文件,因为终端因某种原因找不到我的pod的规范。我也尝试更新,但显然1.1.1是最新的Cocoapods可用... –