未分類だから考え中

Firebaseライブラリ導入できない

Firebaseライブラリを導入するに当たってpod installができなかったので、解決方法をメモしておきます。

最初に結論

podfileに

pod  'Firebase/Analytics'

と記述していたが

pod 'Firebase/Analytics', '~> 1.0.0'

とバージョン指定したらinstallできた。

FirebaseのAnaliticsライブラリを導入したくて、プロジェクトファイルにPodfileをinitするところまできましたが、pod installをすると必ず以下のエラーを吐いていました...

[!] 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...
 - Invalid Podfile: pod install fails with use_native_modules!
   https://github.com/CocoaPods/CocoaPods/issues/9341 [closed] [5 comments]
   13 Nov 2019

 - pod install fails with json error on Mac OS X 10.15
   https://github.com/CocoaPods/CocoaPods/issues/9260 [closed] [4 comments]
   5 weeks ago

 - pod search 
   https://github.com/CocoaPods/CocoaPods/issues/8632 [closed] [0 comments]
   21 Mar 2019

and 1 more at:
https://github.com/cocoapods/cocoapods/search?q=767%3A%20unexpected%20token%20at%20%27%27&type=Issues&utf8=✓

まとめ

Oh no, an error occurred. --> Oh yes, an error solved.

© 2025 やぎぱーぷる