首页 > 解决方案 > 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=✓

我已经尝试了几个旧版本,但仍然卡住并得到相同的错误

标签: iosswiftdatabasefirebasecocoapods

解决方案


sudo rm -rf ~/.cocoapods/repo

更多细节在https://github.com/CocoaPods/CocoaPods/issues/9672


推荐阅读