【问题标题】:gRPC-Core Compile Errors - Apple Mach-O Linker Error after Swift 4/Xcode 9 UpdategRPC-Core 编译错误 - Swift 4/Xcode 9 更新后的 Apple Mach-O 链接器错误
【发布时间】:2017-11-03 18:09:25
【问题描述】:

从 8.3.3 更新到 Xcode 9.1 后,我正在处理的项目出现多个错误,这些错误源于与 Firebase 捆绑的 gRPC-Core。这些错误毫无意义(至少对我而言),我已经尝试了所有常见的修复方法(删除 pod、重新安装、更新 pod、清理、构建、删除派生数据等)。 Cocoapods 版本是 1.3.1

项目中使用的 Pod(更新前一切正常,其他 Pod 没有其他错误)。

  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  pod 'Firebase/Firestore'
  pod 'FirebaseUI/Firestore', '~> 4.0'
  pod 'FirebaseUI/Storage', '~> 4.0'
  pod 'FirebaseUI/Auth', '~> 4.0'
  pod 'FirebaseUI/Facebook', '~> 4.0'
  pod 'FirebaseUI/Google', '~> 4.0'
  pod 'UITextField+Shake', '~> 1.1'
  pod 'SJFluidSegmentedControl', :git => 'https://github.com/adornoventura/SJFluidSegmentedControl.git'
  pod 'GoogleBooksApiClient'
  pod 'Kingfisher', '~> 4.0'
  pod 'BarcodeScanner'
  pod 'GooglePlaces'
  pod 'GooglePlacePicker'
  pod 'Stripe'
  pod 'Lightbox'
  pod 'SwipeCellKit'

编辑:对于那些有同样问题的人,这个问题正在这里被跟踪:https://github.com/firebase/firebase-ios-sdk/issues/423 它源于 Firestore pod。

【问题讨论】:

  • 遇到了 xcode 9.0 的确切问题。由于现有 cocoapods 目录存在 High Sierra 问题并更新了我的 firebase podfile 以包含 cloud firestore,因此在重新安装 cocoapods 后发生。
  • @cod_A 刚刚发现这个问题正在这里的 Firebase Github 上进行跟踪:github.com/firebase/firebase-ios-sdk/issues/423

标签: ios firebase cocoapods swift4 xcode9


【解决方案1】:

gRPC 团队通过发布 pod 版本 1.7.1 修复了此问题。对于遇到此问题的任何人,请清除您的 pod 缓存(pod cache clean),然后重新安装以获取最新版本!

【讨论】:

    【解决方案2】:

    我也有同样的问题。我猜 gRPC-core 有问题并且缺少链接..

    如果我没记错的话,它是从 Firestore 使用的,我猜是自 gRPC-Core 上次更新以来

    我只有

    pod 'Firebase/Core' pod 'FirebaseUI/Auth' pod 'Firebase/Firestore'


    开发者在 Github 上发布了以下内容:

    看起来像是 gRPC-Core 中的一个问题。暂时你可以通过放置来解决这个问题

    pod 'gRPC', 1.6.5 在 Podfile 的顶部。

    【讨论】:

    猜你喜欢
    • 2015-09-02
    • 2017-11-14
    • 2018-11-23
    • 1970-01-01
    • 1970-01-01
    • 2012-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多