Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GeneratedPluginRegistrant.h:10:9: 'Flutter/Flutter.h' file not found

Tags:

ios

flutter

dart

I am trying to run my flutter app in iOS emulator, but I got error saying 'Flutter/Flutter.h' file not found. I have tried multiple solutions like pod clean and reinstalling pods.

flutter version:- 2.10.4 xcode version:- 13.3.1 (13E500a)

enter image description here

enter image description here

like image 890
Aayush Bhattarai Avatar asked Jul 12 '26 23:07

Aayush Bhattarai


2 Answers

My case was that I accidentaly removed default "Run Script" from my Targets/Runner/Build Phases
Targets/Runner/Build Phases

Check if your "Run Script" exists between "Check Pods Manifest.lock" and "Compile Sources" with the script:

/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
like image 112
Isac Moura Avatar answered Jul 14 '26 12:07

Isac Moura


Tried a lot of Solution, non of them work for me, so I manually need to regenerate iOS Directory and configure everything in iOS. Here are the following commands:-

1. rm -rf ios/
2. flutter create .
like image 42
Aayush Bhattarai Avatar answered Jul 14 '26 14:07

Aayush Bhattarai



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!