error: 'Flutter/Flutter.h' file not found when flutter run on iOS
I found a solution!
Backup
ios/Runner
folder.Delete the
ios
folder.Run
flutter create (your project name)
. in the previous folder where you have your project(cd users/user/"projects_folder"
)
(this will recreate yourios
folder).Paste your Runner backup in the
ios
folder (into the project).Open
Runner.xcworkspace
(intoios
folder) and there, check the Version, the Bundle ID, all the info.(If do you Have Firebase, you have to copy and paste again the Google
Service-Info.Plist
into theRunner
folder (Always through Xcode) (If do you do this manually, it doesn't work).
Finally, flutter run
and should work!
If flutter run
fails:
cd ios
pod install
cd ..
flutter run
Error (Xcode): 'Flutter/Flutter.h' file not found
You could try to do this:
- Backup Runner folder
- Delete the ios folder
- Go to a terminal and execute
flutter create .
in the flutter project folder - Paste your Runner folder back into the ios folder
pod deintegrate
in the ios folderpod install
also in the ios folderflutter clean
in the flutter project folderflutter pub get
- flutter run
Please note that if you use firebase you need to re-insert the GoogleService-Info.plist file
Hope it helps, but if it still does not make sure you are in stable channel
GeneratedPluginRegistrant.h:10:9: 'Flutter/Flutter.h' file not found
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 .
Flutter fatal error: 'Flutter/Flutter.h' file not found
Try Raffaelli L.C. answer:
Backup
ios/Runner
folder.Delete the
ios
folder.Run
flutter create (your project name)
. in the previous folder where you have your project(cd users/user/"projects_folder"
)
(this will recreate yourios
folder).Paste your Runner backup in the
ios
folder (into the project).Open
Runner.xcworkspace
(intoios
folder) and there, check the Version, the Bundle ID, all the info.(If do you Have Firebase, you have to copy and paste again the Google
Service-Info.Plist
into theRunner
folder (Always through Xcode) (If do you do this manually, it doesn't work).
Finally, flutter run
and should work!
If flutter run
fails:
cd ios
pod install
cd ..
flutter run
Related Topics
Mkmapview Doesn't Zoom Correctly While User Tracking Mode Is Mkusertrackingmodefollowwithheading
Which Cgimagealphainfo Should We Use
Disable Warning Dialog If Bluetooth Is Powered Off iOS
Insert String at Cursor Position of Uitextfield
Swift - Aws S3 Upload Image from Photo Library and Download It
How to Determine the Correct Altitude for an Mkmapcamera Focusing on an Mkpolygon
How to Draw an Arc on Google Maps in iOS
Avassetresourceloaderdelegate Methods Not Working on Device
Cannot Get My Location to Show Up in Google Maps in iOS 8
Why Don't My Views Show Up in Storyboards and Are Greyed Out in the Left Pane
Cannot Assign Class Instance to Its Protocol Type
Apple Rejected App 10.6 Because Facebook Opens Safari to Login
How to Detect Fullscreen Mode Using Avplayerviewcontroller in Swift
Synchronizing Read/Write Access to an Instance Variable for High Performance in iOS
Missing iOS Development Signing Identity for (Null)
Memory Leak with "Libbacktracerecording.Dylib" in React Native iOS Application