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.
Asked
Active
Viewed 141 times
2 Answers
2
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
A_Rush
- 198
- 3
- 12
0
I do this, this is the ultimate solution
Remove ios/Flutter/Flutter.podspec: rm ios/Flutter/Flutter.podspec
flutter clean
Run your app again.
If the above solution does not work then try to switch the channel from Master to stable.
to switch your channel, run this in your terminal:
flutter channel stable
flutter clean
flutter run
Abhishek Chhabra
- 366
- 2
- 12
-
I already tried both of them. but didn't work. I just tried again and still same. – A_Rush Jun 16 '21 at 09:44