unable to setup cocoapods. Cocoapods setup problem unable to setup cocoapods. Cocoapods setup problem flutter flutter

unable to setup cocoapods. Cocoapods setup problem


For me it was due to cocoapods version. You can use this in your terminal:

sudo gem uninstall cocoapodssudo gem install cocoapods -v 1.7.5pod setup

A workaround for this issue is here: https://github.com/flutter/flutter/issues/41253

and also here:https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices

(I'm using macOS Catalina JIC)


This should be fixed now with flutter version v1.9.1+hotfix.5 and above.

Try uninstalling all existing installations of cocoapods:

sudo gem uninstall cocoapodsbrew uninstall cocoapods

Then install the latest version of cocoapods:

sudo gem install cocoapodspod setup

I can confirm that this is working with flutter 1.12.13+hotfix.9 (stable channel), cocoapods version 1.9.1, on macOS Catalina v10.15.4.


sudo gem install cocoapods -v 1.10.0 -n /usr/local/bin