Reputation: 850
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)
Upvotes: 6
Views: 9004
Reputation: 6928
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
Upvotes: 12
Reputation: 850
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 .
Upvotes: 6