ios - firebase 没有快速安装
问题描述
我一直在尝试在 swift 上安装 firebase,但它不起作用!你可以检查我的 podfile 和我在下面得到的错误
这是我的播客文件
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testt' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for testt
# Add the Firebase pod for Google Analytics
# Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Add the pods for any other Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
end
我得到的错误是:
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=767%3A+unexpected+token+at+%27%27&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
- Error during pod install: Encountered an unknown error (783: unexpected token at
https://github.com/CocoaPods/CocoaPods/issues/9672 [open] [81 comments]
a day ago
- https://github.com/CocoaPods/CocoaPods/search?q=767%3A+unexpected+token+at+%27%27&type=Issues
https://github.com/CocoaPods/CocoaPods/issues/9777 [closed] [3 comments]
a day ago
- Pod install results in JSON::ParserError - 767. Trying to install pod 'Firebase/Firestore'
https://github.com/CocoaPods/CocoaPods/issues/9694 [closed] [11 comments]
5 days ago
and 10 more at:
https://github.com/cocoapods/cocoapods/search?q=767%3A%20unexpected%20token%20at%20%27%27&type=Issues&utf8=✓
我已经尝试了几个旧版本,但仍然卡住并得到相同的错误
解决方案
sudo rm -rf ~/.cocoapods/repo
推荐阅读
- android - Android Chip_如何以编程方式使芯片背景颜色透明?
- r - 具有 Kolmogorov-Smirnov 双样本、Cramer-von Mises 和 Kuiper 检验的 ECDF
- c++ - C++ 标识符“读取”冲突?
- python - Pandas 已安装但无法识别
- android - 在华为应用程序库中使用一个 Signal Cordova Plugin SDK 支持 Android 应用程序
- c++ - 从 HANDLE 到 ULONG C++ 的类型转换截断
- angular - 单击按钮更改路由 url
- python - 为什么我不能在模块级别调用此函数?
- reactjs - 如何根据客户端设备大小调整图像大小
- python - 如何在 Python 解释器中提供多个输入 TFlite 模型