Module 'path_provider' not found
2,455
Solution 1
I had the same issue. All I had to do was open the runner.xcworkspace
instead of runner.xcodeproj
and run the app.
Solution 2
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.
Author by
Johanna
Updated on December 24, 2022Comments
-
Johanna over 1 year
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:
- I get the error Module 'path_provider' not found.
- 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?