So I am new to mac. I installed Flutter, Android Studio, XCode, CocoaPods (with sudo gem install cocoapods
) and every other required packages. The app ran successfully on Android but I get this error while trying to run on iOS:
JSON::ParserError - Failed to parse JSON at file: '~/.cocoapods/repos/trunk/Specs/a/d/d/GoogleMaps/6.0.0/GoogleMaps.podspec.json'. unexpected token at '"SwiftExample/GoogleMapsSwiftDemos/Swift/AppDelegate.s'
This (seems like the most important) part of the long error log. (Check this issue for the full log).
I tried: flutter clean, reinstalling Cocoapods, tried using VPN as suggested in the issue above, none worked.