skip to Main Content

When I run Flutter app in Xcode, the app does not run.

Error: pod not installed.

I want to run app on iOS device.

Where does Android Studio expect to find CocoaPods? Could the problem be that Android Studio can’t find the path to CocoaPods?

Logs :

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.

CocoaPods not installed or not in valid state.

Error launching application on iPhone 12 mini.

3

Answers


  1. First go to terminal, then go to ios directory in project, then run ‘pod install’.
    If this doesn’t work then run ‘pod update’. This will definitely work.

    Login or Signup to reply.
  2. Open Terminal in your system and do all these steps one by one :

    • sudo gem install cocoapods-deintegrate
    • sudo gem install cocoapods-clean
    • cd (your project path)
    • pod deintegrate
    • pod clean
    • rm Podfile
    • pod init
    • pod install
    Login or Signup to reply.
  3. Here’s a step-by-step guide to installing Cocoapods for an iOS project in a Flutter project:

    Step 1

    cd path/to/your/flutter_project
    

    Step 2

    sudo gem install cocoapods
    

    Step 3

    cd ios
    

    Step 4

    pod init
    

    Step 5

    nano Podfile
    

    Step 6

    pod install
    

    Step 7

    open Runner.xcworkspace
    

    i hope this works

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search