我正在尝试为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的本文档进行操作

最佳答案

显然,要摆脱在Podfile.lock上生成的pod install,您需要运行pod update

08-16 14:37