【发布时间】: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.xcodeproj或MyApp.xcworkspace打开项目吗?
标签: swift firebase grpc google-cloud-firestore