在我的iOS应用中安装"pod Firebase/Firestore"时出错 [英] Error Installing 'pod Firebase/Firestore' in my iOS app

查看:43
本文介绍了在我的iOS应用中安装"pod Firebase/Firestore"时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法安装Pod Firebase/Firestore.我也同样无法找到错误,这是所有信息:

I am unable to install pod Firebase/Firestore. I am also unable to locate the error also, here is all the information:

版本信息:

   CocoaPods : 1.10.0
        Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
    RubyGems : 2.5.2.3
        Host : Mac OS X 10.14.6 (18G103)
       Xcode : 11.0 (11A420a)
         Git : git version 2.21.0 (Apple Git-122)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

我的PodFile:

在终端末尾,它提供以下信息:

At the end of terminal it provides following information:

在终端开始时,我会在其中提供"pod install"命令:

At the start of terminal, where I give "pod install" command:

内部终端,发生错误的地方:

Inside terminal, where the error occurred:

我已经安装了几次,但是这次却出现了这种奇怪的行为,我无法弄清楚.任何帮助将不胜感激.谢谢.

I had installed it a couple of times earlier, but this time it is giving this strange behaviour which I am unable to figure out. Any help would be highly appreciated. Thanks.

@Jay

因此,首先我通过'sudo gem uninstall cocoapods'删除了所有cocoapods版本,然后再次安装了cocoapods,这里是:

So at first I removed all cocoapods versions by 'sudo gem uninstall cocoapods' and then installed cocoapods again, here it is:

然后,我从一个正在运行的项目中复制了pod并创建了一个新项目,然后在podfile中将这些pod粘贴到了这里,

Then, I copied pods from a working project and created a new project and in the podfile pasted those pods, here:

然后在执行Pod安装后,出现了相同的错误,

Then after executing pod install, I got the same error, here:

我不知道为什么会这样,并且让我发疯了,因为这不是来自Firebase的问题.我无法弄清楚到底发生了什么.

I don't know why is this happening, and is driving me crazy to know that it is not an issue from firebase. I am unable to figure out exactly what is happening.

推荐答案

好的,所以经过一番努力,我找到了解决问题的方法.我的Pod存储库有些过时,因此无法安装Pod.终端中的错误是读取类似通过boringSSL意外的令牌..."

Ok so after some struggle I got the solution to my problem. My pod repo was somewhat outdated and because of that I was unable to install the pod. The error in the terminal was reading something like 'Unexpected token by boringSSL...'

我执行了以下命令来删除我的Pod存储库并重新安装它,然后Pod正确安装:

I performed the following commands to remove my pod repository and reinstalled it, after which the pod installed correctly:

pod repo remove master
pod setup
pod install

这篇关于在我的iOS应用中安装"pod Firebase/Firestore"时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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