gRPC-Core编译错误 - 在Swift 4/Xcode 9更新后出现Apple Mach-O链接器错误

3

从8.3.3升级到Xcode 9.1后,我正在处理的项目由于与Firebase捆绑的gRPC-Core出现了多个错误。这些错误对我来说毫无意义,我已经尝试过所有常规修复方法(删除pods,重新安装,pod update,clean,build,删除派生数据等)。Cocoapods版本为1.3.1。

gRPC errors

项目中使用的Pods(在更新之前一切正常,没有其他来自其他pods的错误)。
  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中遇到了一个确切的问题。由于High Sierra存在现有cocoapods目录的问题,并更新我的Firebase podfile以包括Cloud Firestore,因此重新安装了CocoaPods。 - Shadrach Mensah
@cod_A 刚刚发现这个问题正在 Firebase 的 Github 上被跟踪,链接在这里:https://github.com/firebase/firebase-ios-sdk/issues/423 - luxo
2个回答

2

gRPC团队通过发布pod版本1.7.1解决了这个问题。如果您遇到此问题,请清除您的pod缓存(pod cache clean),然后进行新的安装以获取最新版本!


0

我有同样的问题。我猜测gRPC-core存在问题,缺少一个链接。

如果我没记错的话,它是从Firestore中使用的,我猜测这是由于gRPC-Core的最新更新引起的。

我只有以下这些:

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


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

看起来是gRPC-Core的问题。暂时您可以通过将

pod 'gRPC',1.6.5 放在您的Podfile顶部来解决此问题。


刚刚看到 Firebase 的 Github 上正在跟踪此问题:https://github.com/firebase/firebase-ios-sdk/issues/423 希望很快能有一个解决方案。 - luxo

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接