Pod issue -: Nanaimo::Reader::ParseError - [!] Array missing ',' in between objects

Viewed 1806

I'm getting issue during install pod in react-native project

Nanaimo::Reader::ParseError - [!] Array missing ',' in between objects please help me if anyone have idea about that.

enter image description here

2 Answers

The error is basically telling that you have a syntax mistake in the file. In my case while using "React Native Upgrade Guide" I was pasting the changed line and forgot to add a comma. Make sure you have no trailing commas and you are closing the lines with semicolons!

P.S. The line of code which was pointed at in the terminal wasn't the exact line where the mistake was made in my case but the comma was missing 3-4 lines before so be careful, it might be misleading...

Seems like there was an interruption during initial pod install (cloning repository using lfs).

Or you may have copy and pasted the source code without proper cloning procedure.

You can wipe clean pods by:

rm -rf ~/.cocoapods
rm -rf ~/Library/Caches/CocoaPods

Then wipe any generated files inside project root by:

git clean -dfx

And, after all that, you can try pod install --repo-update again inside the iOS folder.

Related