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

Issue

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

Solution

change your working directory to ios with:

   cd ios

and then run whichever pod commands you’d like

Answered By – CJG

Answer Checked By – Senaida (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *