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)


My case was that I accidentaly removed default "Run Script" from my 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
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 .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With