Julia Pak
Julia Pak

Reputation: 743

flutter: Module 'path_provider_foundation' not found

Hello I am trying to run my flutter project, but I am getting the following error:

Parse Issue (Xcode): Module 'path_provider_foundation' not found
/Users/juliapak/Desktop/app_projects/testerapp/ios/Runner/GeneratedPluginRegistrant.m:11:8


Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

What I have tried so far:

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

Then I opened Runner.xcodeproj and tried running from there. I also tried running from Runner.xcworkspace

Upvotes: 2

Views: 564

Answers (4)

Pete Alvin
Pete Alvin

Reputation: 4800

Nothing worked for me except these exact steps:

  1. [from proj root directory] rm -rf ios (start over)
  2. flutter create --platforms=ios .
  3. cd ios
  4. run flutter

and the iPhone simulator finally ran with my app.

I think the secret was NOT doing this:

  1. instead of 'run flutter' I would type 'flutter build ios'
  2. in XCode hit Run > (and inevitable the OPs error would appear)

I think it's because 'flutter build ios' builds release mode instead of debug mode.

Upvotes: 0

user13196140
user13196140

Reputation: 1

For me the problem was solved by changing the Xcode Run Scheme from Release to Debug.

Change XCode Scheme

Upvotes: 0

Handelika
Handelika

Reputation: 412

I delete the ios files and recreated again and solved my issue

deleting ios files;

rm -rf ios

For recreating;

flutter create .

Upvotes: 0

Julia Pak
Julia Pak

Reputation: 743

Ok I solved it for now..

Had to go into Runner.xcworkspace and add arm64 to the excluded architectures for simulator

Looks like this: enter image description here

Upvotes: 1

Related Questions