I am having this issue where I the application isn't building because it says
fatal error: 'Flutter/Flutter.h'
file not found
#import <Flutter/Flutter.h>
I've been working on this issue the whole day, but haven't gotten anywhere. It's a simple program (the initial code that you get when you open flutter new project), and have added firebase_core.
Whole XCode output:
Xcode's output:
↳
In file included from
/Users/alfieanil/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_cor
e-1.10.0/ios/Classes/FLTFirebaseCorePlugin.m:5:
/Users/alfieanil/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_cor
e-1.10.0/ios/Classes/FLTFirebaseCorePlugin.h:9:9: fatal error: 'Flutter/Flutter.h'
file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
My Flutter was working fine until a month or two ago. Flutter version = 2.0.6
Any help is greatly appreciated.
Thanks
I managed to fix it by following these steps:
Original Link: https://fluttercorner.com/error-null-safety-features-are-disabled-for-this-library/ (solution 1)