【问题标题】:Adding Firestore generates the error ld: framework not found GRPCClient添加 Firestore 会生成错误 ld: framework not found GRPCClient
【发布时间】:2018-04-03 02:48:20
【问题描述】:

我将 Firestore 添加到我现有的项目中,我一直在使用 Firebase 实时数据库,但无法再次运行我的项目。现在无法编译我的项目。我一直有ld: framework not found GRPCClient

当我删除 pod 'Firebase/Firestore' 时,我的项目运行没有问题。但是我一添加pod 'Firebase/Firestore' 并安装它,我就收到了ld: framework not found GRPCClient 的错误

这是我的 Podfile 内容:

  pod 'Pastel'
  pod 'TwicketSegmentedControl'
  pod 'IQKeyboardManager'

  pod 'PINRemoteImage'

  pod 'FacebookCore'

  pod 'Firebase/Core'
  pod 'Firebase/Auth'
  pod 'FacebookLogin'
  pod 'FacebookShare'
  pod 'Firebase/Database'
  pod 'Firebase/Messaging'
  pod 'Firebase/Crash'
  pod 'Firebase/RemoteConfig'
  pod 'Firebase/Storage'
  pod 'Firebase/Firestore'

  pod 'AAPhotoCircleCrop'
  pod 'GrowingTextView', '~> 0.4.0'
  pod 'TimeAgoInWords'

  pod 'Fabric'
  pod 'Crashlytics'

【问题讨论】:

  • 尝试清除 DerivedData 并重建。如果仍有问题,请分享您的 Podfile。
  • @PaulBeusterien 在清除 DerivedData 并重建后我遇到了同样的问题。我用我的 podfile 内容编辑了我的问题
  • 添加此 pod 后是否正在执行“pod install”?
  • @HaroldoGondim 当然我安装了 pod。我使用的是 Firebase 实时数据库,现在我想添加他们的新 NoSQL 数据库 Firestore ,gRPC 是依赖项之一。
  • 您是使用MyApp.xcodeprojMyApp.xcworkspace打开项目吗?

标签: swift firebase grpc google-cloud-firestore


【解决方案1】:

我自己终于找到了解决办法:

在应用工作区中:

Target -> Project -> Build Settings 

Build Active Architectures更改为No,也在Pods项目中,在每个目标中更改它,清理并重新构建最终解决了the framework not found GRPCClient错误。

【讨论】:

    【解决方案2】:

    我终于更新了我的 cocoapod 版本,并执行 pod install 以使用最新版本的 cocoapod 安装它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-07
      • 2016-12-10
      • 1970-01-01
      • 1970-01-01
      • 2018-03-15
      • 2020-12-10
      • 1970-01-01
      • 2018-01-16
      相关资源
      最近更新 更多