Home > Software engineering >  Error :: CocoaPods installed but not working.You appear to have CocoaPods installed but it is not wo
Error :: CocoaPods installed but not working.You appear to have CocoaPods installed but it is not wo

Time:11-18

CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
        This can usually be fixed by re-installing CocoaPods.

enter image description here

sudo gem install cocoapods -v 1.11.0 Password: Successfully installed cocoapods-1.11.0 Parsing documentation for cocoapods-1.11.0 Done installing documentation for cocoapods after 2 seconds 1 gem installed

CodePudding user response:

You should try this

  1. flutter clean
  2. delete /ios/Pods
  3. delete /ios/Podfile.lock
  4. flutter pub get
  5. from inside ios folder: pod install
  6. flutter run

source: https://stackoverflow.com/a/66001187/19247433

CodePudding user response:

I tried try this

flutter clean delete /ios/Pods delete /ios/Podfile.lock flutter pub get from inside ios folder: pod install flutter run

still same error ?

  • Related