Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module 'path_provider' not found

I have used several times the Xcode simulator for my flutter app. One time I tried to change the simulator to iPhone 11 Pro (don't know if it did or did not cause the problem) but since then:

  1. I get the error Module 'path_provider' not found.
  2. It seems that each time when I double click on the Runner.xcworkspace file, it opens the project file instead. I'm new to Xcode so not quite sure about that but I attached a screenshot.

Things I've tried:

  • updated according to the instructions in the warnings (which can be seen in the screenshot).
  • deleted all Xcode cache with Reset Xcode
  • deleted the android studio project and popped it again from git.
  • flutter clean + removed all the pod files + pod install from android studio terminal. according to the explanations here: reinstall pod

What else can I do?

enter image description here

like image 875
Johanna Avatar asked Oct 08 '20 08:10

Johanna


2 Answers

I had the same issue. All I had to do was open the runner.xcworkspace instead of runner.xcodeproj and run the app.

like image 164
PeakGen Avatar answered Oct 23 '22 04:10

PeakGen


I faced this same error and realized that I have used pod init manually so I deleted the Podfile in the ios folder then run flutter build ios. The Flutter will generate the Podfile correctly and everything works well after that.

like image 41
leegor Avatar answered Oct 23 '22 04:10

leegor