No `Podfile' found in the project directory in Flutter project

3,014

change your working directory to ios with:

   cd ios

and then run whichever pod commands you'd like

Share:
3,014
Mitchell Bivens
Author by

Mitchell Bivens

Updated on December 30, 2022

Comments

  • Mitchell Bivens
    Mitchell Bivens over 1 year

    I keep getting a no `Podfile' found in project directory error even though I have a podfile and a podfile.lock. I've run flutter clean, flutter pub get, pod init, flutter build iOS and still get the same error message. I've tried deleting the pod file and then running the command sumo gem install cocoapod, pod install, and then flutter build iOS and still keep running into the same errors.

    enter code here

  • Mitchell Bivens
    Mitchell Bivens almost 3 years
    Thank you @CJG!