Flutter 'Error running pod install' 'Pods-Runner' target has transitive dependencies Flutter 'Error running pod install' 'Pods-Runner' target has transitive dependencies dart dart

Flutter 'Error running pod install' 'Pods-Runner' target has transitive dependencies


You can see the error in the message

[!] Automatically assigning platform `iOS` with version `8.0` on target`Runner` because no platform was specified. Please specify a platform forthis target in your Podfile.

So, go to the file ios/Podfile inside your project, find there the line

# platform :ios, '9.0'

and uncomment it.

After that delete ios/Podfile.lock file and run project again (or pod update)


Looks like the error from CocoaPods is suggesting you add a line like:

  1. Add to the top of ios/Podfile in the Flutter app directory

    platform :ios, '9.0'
  2. Delete the podfile.lock file from the ios folder.

  3. run pod install

    If pod install gives any error then try this

    pod install --repo-update 
  4. flutter run


  1. cd ios/
  2. rm Podfile.lock
  3. pod install
  4. pod repo update