File not found Flutter/Flutter.h

114

The only solution worked for me is given down. Changing these lines in my podfile did the trick

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

to

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

And also I strictly followed firebase_crashlytics configuration for native

Share:
114
A_Rush
Author by

A_Rush

Updated on December 30, 2022

Comments

  • A_Rush
    A_Rush over 1 year

    I am continuously getting Flutter/Flutter.h file not found issue after adding firebase_crashlytics to the project. Flutter Sdk: 2.2.2 firebase_crashlytics: ^2.0.6 I tried lots of solutions form stackoverflow already but still unable to run for ios.