Answers for "Flutter/Flutter h file not found"

1

fatal error: 'flutter/flutter.h' file not found #import <flutter/flutter.h>

Swift, Flutter/Dart
Try these commands:

flutter clean
rm -rf ios/Podfile.lock ios/Pods/
flutter run

// This worked for me most of the time. I believe the consequence 
// of a Podfile older than Podfile.lock is that pod install isn't 
// executed as part of flutter run. The above fixes that.

// Another thing to try if the latter fails, check all the packages. One of them might not support Flutter 2 yet 
// or vice versa.For this go to your files and see if an of the imports have warnings.
// Tricky error lots of ways to solve the error but more info would help.
Posted by: Guest on June-03-2021
1

Flutter/Flutter.h' file not found flutter

// Delete ios directory and recreate by running

flutter create .
Posted by: Guest on September-10-2021

Code answers related to "Flutter/Flutter h file not found"

Browse Popular Code Answers by Language