1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android Studio error: "CocoaPods not installed or not in valid state."

Discussion in 'Developer Forums' started by tdkehoe, Jan 28, 2022.

  1. tdkehoe

    tdkehoe Lurker
    Thread Starter

    Where does Android Studio expect to find CocoaPods? Could this be a path problem?

    I have Bumblebee 2021.1.1.

    I'm trying to test my app on my iPhone from Android Studio. The error I get is

    Warning: CocoaPods not installed. Skipping pod install.
    CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
    Without CocoaPods, plugins will not work on iOS or macOS.
    For more info, see https://flutter.dev/platform-plugins
    To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

    Exception: CocoaPods not installed or not in valid state.


    I ran gem list and the list of installed pods include:

    cocoapods (1.11.2)
    cocoapods-core (1.11.2)
    cocoapods-deintegrate (1.0.5)
    cocoapods-downloader (1.5.1)
    cocoapods-plugins (1.0.0)
    cocoapods-search (1.0.1)
    cocoapods-trunk (1.6.0)
    cocoapods-try (1.2.0)

    I ran

    sudo gem uninstall cocoapods && sudo gem install cocoapods

    I ran

    flutter clean

    I restarted Android Studio.

    I ran File > Invalidate Caches… > Invalidate and Restart.

    I ran

    brew install cocoapods
    brew link --overwrite cocoapods


    I ran

    cd ios
    pod install


    This threw this error:

    [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

    I tried to open my Android Studio project in Xcode and got this error:

    Could not open file.

    What should I do?
     


    Steve BenAri and buttonsrtoys like this.

    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Android Studio error
  1. Atharv Thorat
    Replies:
    0
    Views:
    631
  2. WhaleJesus
    Replies:
    1
    Views:
    1,307
  3. ozth89
    Replies:
    2
    Views:
    2,085
  4. brentc
    Replies:
    1
    Views:
    1,212
  5. brentc
    Replies:
    2
    Views:
    1,642
  6. Mohammed Khalid
    Replies:
    5
    Views:
    2,462
  7. erenalkan
    Replies:
    5
    Views:
    1,767
  8. unet
    Replies:
    0
    Views:
    1,647
  9. curvenger
    Replies:
    3
    Views:
    2,178
  10. yesumani
    Replies:
    1
    Views:
    2,031

Share This Page

Loading...