使用Cocoapods安装Firestore [英] Firestore installation using Cocoapods

查看:78
本文介绍了使用Cocoapods安装Firestore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的项目中安装Firestore.

I'm trying to install firestore in my project.

当我尝试安装它时,Xcode会显示

when I'm trying to install that, Xcode displays

严重错误:找不到模块映射文件'/Users/account/Documents/myapp/Pods/Headers/Private/openssl_grpc/BoringSSL-GRPC.modulemap'

fatal error: module map file '/Users/account/Documents/myapp/Pods/Headers/Private/openssl_grpc/BoringSSL-GRPC.modulemap' not found

有时是其他错误......

or sometimes another errors....

所以我花了很多时间(几乎整整2天)来解决这个问题,但实际上没有任何效果:/(删除派生数据和Pods文件夹,pod解集成,pod安装和更新或清理构建(命令-shift-k)).

so I've spend so many of times (almost entire 2 days) to solve this problem, but nothing is actually working :/ (deleting derived data and Pods folder, pod deintegrate, pod install and update or cleaning build (Command-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安装....)

this is my Podfile. and whenever I delete pod 'Firebase/Firestore', everything's working whereas Firebase/Firestore is not. (surely to recover normal working state, I comment all of pod repositories, (in terminal) type "pod install" and then uncomment top 4 repositories and pod install....)

我真的想使用Firestore,但我不能.

I really wanna use Firestore, but I can't.

请帮助我.

推荐答案

Firestore需要最新的CocoaPods.根据Google开发人员

Firestore requires latest CocoaPods. As per Google developer

使用CocoaPods 1.9.0应该会更好,它添加了 能够为中的每个Pod指定动态/静态链接 Podfile.

It should get better with CocoaPods 1.9.0 which is adding the capability to specify dynamic/static linkage for each pod in the Podfile.

请检查此链接 https://github.com/firebase/firebase -ios-sdk/issues/3816

这篇关于使用Cocoapods安装Firestore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆