Flutter build failed 'UserAgent.h' file not found

后端 未结 4 837
名媛妹妹
名媛妹妹 2021-02-14 02:30

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 hot

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-14 02:49

    I found the solution

    just comment or import and put this code below it should look like this

    #import "FLTFirebaseCorePlugin.h"
    // #import "UserAgent.h"
    // Generated file, do not edit
    
    #define LIBRARY_VERSION @"0.4.4-2"
    #define LIBRARY_NAME @"flutter-fire-core"
    

提交回复
热议问题