Javeed Ishaq
Javeed Ishaq

Reputation: 7105

Flutter Error running pod install After Upgrading Flutter version

After upgrading the flutter version to the latest Flutter 2.2.1, it gives an error running pod install, on running app on ios simulator

enter image description here

I have tried cleaning pods by performing the following commands but it did not fix the issue

flutter clean
flutter pub get
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
rm ios/Podfile

and Finally

flutter run

Upvotes: 2

Views: 6179

Answers (3)

Fakhriddin Abdullaev
Fakhriddin Abdullaev

Reputation: 4930

run this code on the terminal

sudo arch -x86_64 gem install ffi

Next, go to the ios folder in your project, and open Podfile.

remove the # character and change the 9.0 to 10.0, and the final code should be like the below

platform :ios, '10.0'

Upvotes: 1

jux_97
jux_97

Reputation: 462

Following set of steps worked for me:

  1. Run flutter clean
  2. Run flutter pub get
  3. Run flutter pub upgrade
  4. Delete Podfile, Podfile.lock and Pods folder within ios folder of the project
  5. Run flutter clean
  6. Run flutter run

Upvotes: 0

José David Ortega
José David Ortega

Reputation: 434

try this: go to ios folder and run

pod install --repo-update 

Upvotes: 4

Related Questions