fatal error: 'Flutter/Flutter.h' file not found

141 views
Skip to first unread message

Ritika Desai

unread,
Jul 22, 2021, 2:50:47 AM7/22/21
to Flutter Development (flutter-dev)
Hi,

Ever since I have upgraded to Flutter 2.2.3, I have been coming across this issue

fatal error: 'Flutter/Flutter.h' file not found
    #import "Flutter/Flutter.h"

for the two plugins
1. Shared Preferences
2. URLLauncher

The post-install of my pod file is 

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end

However, when I change it to

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end

It gives the following error

The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99.

I have tried everything including deleting the Podfile, Podfile.lock, Pods folder, upgrading flutter, changing channels from Stable to Master to Beta, creating a new project and copying thr iOS folder

Nothing is working and I've been stuck on this for days now.

Any help is appreciated 

Thank you!


Bridget Kelly O'Sheehan

unread,
Jul 24, 2021, 3:54:21 AM7/24/21
to Flutter Development (flutter-dev)
I've got the same issue, but I went from IOS 9 up to IOS 10 and everything has broken :(  I've posted to this group as well as Firebase. No idea what's causing this issue.

Ritika Desai

unread,
Jul 27, 2021, 12:06:09 PM7/27/21
to Flutter Development (flutter-dev)
Did you get any work around for this?
Reply all
Reply to author
Forward
0 new messages