我正在尝试为Google Analytics安装Firebase,但收到错误消息:
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In snapshot (Podfile.lock):
FirebaseCore (= 3.6.0)
In Podfile:
Firebase/Core (= 4.3.0) was resolved to 4.3.0, which depends on
FirebaseCore (= 4.0.8)
Specs satisfying the `FirebaseCore (= 3.6.0), FirebaseCore (= 4.0.8)` dependency were found, but they required a higher minimum deployment target.
这仅仅是因为我的Podfile.lock?删除它会解决这个问题吗?
我正在尝试运行Firebase的更新版本,因为默认版本(更旧版本)导致Xcode 9崩溃。
target 'Candy' do
pod 'Firebase/Core', '4.3.0'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
供参考,我使用的是Swift 3.2,我试图基于Google
的文档答案 0 :(得分:2)
显然要摆脱Podfile.lock
生成的pod install
,您需要运行pod update
。