0

Im facing this below issue for a while,

/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
```
――― TEMPLATE 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%7B%0A++%22name%22%3A+%22FirebaseMessaging%22%2C%0A++%22version%22%3A+%228.11.0%22%2C%0A++%22summary%22%3A+%22Firebase+Messaging%22%2C%0A++%22description%22%3A+%22Firebase+Messaging+is+a+service+that+allows+you+to+send+data+from+your+server+to+your+users%27%5CniOS+device%2C+and+also+to+receive+messages+from+devices+on+the+same+connection.+The+service+handles%5Cnall+aspects+of+queueing+of+messages+and+delivery+to+the+target+application+running+on+the+target%5Cndevice%2C+and+it+is+completely+free.%22%2C%0A++%22homepage%22%3A+%22https%3A%2F%2Ffirebase.google.com%22%2C%0A++%22license%22%3A+%7B%0A++++%22type%22%3A+%22Apache%22%2C%0A++++%22file%22%3A+%22LICENSE%22%0A++%7D%2C%0A++%22authors%22%3A+%22Google%2C+Inc.%22%2C%0A++%22source%22%3A+%7B%0A++++%22git%22%3A+%22https%3A%2F%2Fgithub.com%2Ffirebase%2Ffirebase-ios-sdk.git%22%2C%0A++++%22tag%22%3A+%22CocoaPods-8.11.0%22%0A++%7D%2C%0A++%22social_media_url%22%3A+%22https%3A%2F%2Ftwitter.com%2FFirebase%22%2C%0A++%22platforms%22%3A+%7B%0A++++%22ios%22%3A+%2210.0%22%2C%0A++++%22osx%22%3A+%2210.12%22%2C%0A++++%22tvos%22%3A+%2210.0%22%2C%0A++++%22watchos%22%3A+%226.0%22%0A++%7D%2C%0A++%22cocoapods_version%22%3A+%22%3E%3D+1.4.0%22%2C%0A++%22prefix_header_file%22%3A+false%2C%0A++%22source_files%22%3A+%5B%0A++++%22FirebaseMessaging%2FSources%2F%2A%2A%2F%2A%22%2C%0A++++%22FirebaseMessaging%2FSources%2FProtogen%2Fnanopb%2F%2A.h%22%2C%0A++++%22Interop%2FAnalytics%2FPublic%2F%2A.h%22%2C%0A++++%22FirebaseCore%2FSources%2FPrivate%2F%2A.h%22%2C%0A++++%22FirebaseInstallations%2FSource%2FLibrary%2FPrivate%2F%2A.h%22%0A++%5D%2C%0A++%22public_header_files%22%3A+%22FirebaseMessaging%2FSources%2FPublic%2FFirebaseMessaging%2F%2A.h%22%2C%0A++%22libraries%22%3A+%22sqlite3%22%2C%0A++%22pod_target_xcconfig%22%3A+%7B%0A++++%22GCC_C_LANGUA%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 output from CocoaPods:
↳
Searching for inspections failed: undefined method `map' for nil:NilClass
Error running pod install
Error launching application on iPhone 12 mini.
Exited (sigterm)

I tried up with some of solutions like

https://stackoverflow.com/questions/67443265/error-regarding-undefined-method-map-for-nilnilclass-for-flutter-app-cocoap
sudo arch -x86_64 gem install ffi
# go to ios folder then run
arch -x86_64 pod install

Below message i got from the link which is printed in the console,

767: unexpected token at '{  "name": "FirebaseMessaging",  "version": 
"8.11.0",  "summary": "Firebase Messaging",  "description": "Firebase 
Messaging is a service that allows you to send data from your server to 
your users'\niOS device, and also to receive messages from devices on the 
same connection. The service handles\nall aspects of queueing of messages 
and delivery to the target application running on the target\ndevice, and 
it is completely free.",  "homepage": "https://firebase.google.com",  
"license": {    "type": "Apache",    "file": "LICENSE"  },  "authors": 
"Google, Inc.",  "source": {    "git": 
"https://github.com/firebase/firebase-ios-sdk.git",    "tag": "CocoaPods- 
8.11.0"  },  "social_media_url": "https://twitter.com/Firebase",  
"platforms": {    "ios": "10.0",    "osx": "10.12",    "tvos": "10.0",    
"watchos": "6.0"  },  "cocoapods_version": ">= 1.4.0",  
"prefix_header_file": false,  "source_files": [    
"FirebaseMessaging/Sources/*/",    
"FirebaseMessaging/Sources/Protogen/nanopb/.h",    
"Interop/Analytics/Public/.h",    "FirebaseCore/Sources/Private/.h",    
"FirebaseInstallations/Source/Library/Private/.h"  ],  
"public_header_files": 
"FirebaseMessaging/Sources/Public/FirebaseMessaging/*.h",  "libraries": 
"sqlite3",  "pod_target_xcconfig": {    "GCC_C_LANGUA'

But couldn't find a solution for it, i'm using macOS with intel chip

Abilash S
  • 155
  • 1
  • 8

0 Answers0