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
How to Find Current Visible Viewcontroller in Ios
Save Generated Gif to Camera Roll
How to Add Pagecontrol Inside Uicollectionview Image Scrolling
React Native App Crashes on Launch Screen on Device
Best Way to Check If Object Is Out of Bounds in Array
Swift Tableview in a Uiview Not Displaying Data
What Happens When Testflight App Expire
How to Change Button Title Alignment in Swift
Iphone 6 and 6 Plus Media Queries
Returning Data from Async Call in Swift Function
Transport Security Has Blocked a Cleartext Http
How to Check For an Active Internet Connection on iOS or Macos
Loading/Downloading Image from Url on Swift
How to Deal With the Nsdateformatter Locale "Feechur"
Uidevice Uniqueidentifier Deprecated - What to Do Now
What's the Difference Between the Atomic and Nonatomic Attributes
Core Data: Quickest Way to Delete All Instances of an Entity