【发布时间】:2020-04-30 18:53:32
【问题描述】:
我正在尝试在我的项目中安装 firestore。
当我尝试安装它时,Xcode 会显示
致命错误:找不到模块映射文件“/Users/account/Documents/myapp/Pods/Headers/Private/openssl_grpc/BoringSSL-GRPC.modulemap”
或者有时会出现其他错误....
所以我花了很多次(几乎整整 2 天)来解决这个问题,但实际上没有任何效果:/(删除派生数据和 Pods 文件夹、pod deintegrate、pod install and update 或清理构建(命令-shift-k))。
platform :ios, '13.0'
target 'myapp' do
# Comment the next line if you don't want to use dynamic frameworks
#use_frameworks!
use_modular_headers!
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/DynamicLinks'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
#pod 'FirebaseFirestoreSwift'
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-posd
end
这是我的Podfile。每当我删除 pod 'Firebase/Firestore' 时,一切正常,而 Firebase/Firestore 则不行。 (为了恢复正常工作状态,我注释了所有 pod 存储库,(在终端中)键入“pod install”,然后取消注释前 4 个存储库和 pod install....)
我真的很想使用 Firestore,但我不能。
请帮帮我。
【问题讨论】:
-
尝试使用这些库的旧版本。
-
@ZonilyJame 嗯...火库?或其他所有图书馆?
标签: ios xcode firebase google-cloud-firestore