Project cannot build or debug with firebase_crashlytics. In my mac I've updated to Flutter latest but the machine we are deploying the app have lower version (Flutter 1.9.1 hotfix-5). So I tried below things:
flutter pub cache repair
flutter clean
ios/pod install
But no luck.
#import "UserAgent.h"
^~~~~~~~~~~~~
1 error generated.
Is there any solution without upgrading flutter for the time being?
I was almost there, I think even if I clean the flutter and pod install
will not clear everything. I just had to do below steps:
flutter clean
cd ios
pod deintegrate
// or you can do **cd ios/pod deintegrate** without above step
pod install
If this still didnt work. Please close .xcworkspace
and podfile.lock then do last two step again and open newly generated .xcworkspace
and Product -> build.
If not yet fixed please add a comment below (I have dealt lot of these problems).
Check here are created issues for this: issue 1 with firestore and issue 2 with crashlytics.
As mentioned in the firestore issue ticket, fixing the version of the firebase core to 0.4.4 instead of using 0.4.4+2 fixed the issue:
dependency_overrides:
firebase_core: 0.4.4
Add this along with your existing firebase_auth
dependency.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With