【问题标题】:Trying to install Firebase for Google Analytics尝试为 Google Analytics 安装 Firebase
【发布时间】:2018-01-23 02:59:30
【问题描述】:

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

【问题讨论】:

    标签: ios firebase firebase-analytics


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-14
      • 2018-12-16
      • 2013-08-19
      • 1970-01-01
      • 2018-10-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多