Flutter build failed ‘UserAgent.h’ file not found

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
  • deleting Podfile.lock and ios/pod install

But no luck.

#import "UserAgent.h"
1 error generated.

Is there any solution without upgrading flutter for the time being?

Read more here: https://stackoverflow.com/questions/59592295/flutter-build-failed-useragent-h-file-not-found

Content Attribution

This content was originally published by Blasanka at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: