Flutter build failed 'UserAgent.h' file not found

后端 未结 4 830
名媛妹妹
名媛妹妹 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:55

    Here are two solutions that try to solve this

    1. If anyone kept the ^ in the version like this firebase_core: ^0.4.4+2, remove it otherwise it will keep using newer versions.

      To solve this, Pubspec.yaml removed ^ from all firebase plugins and flutter clean.

      firebase_auth: 0.15.4
      cloud_firestore: 0.13.4
      firebase_core: 0.4.4
      
    2. If you tried the first solution but you getting a still error then there is something problem with .pub-cache

      To solve this, run the commands below.

      1. cd ios
      2. pod deintegrate
      3. cd ..
      4. flutter channel stable
      5. flutter upgrade
      6. flutter clean
      7. flutter build ios

提交回复
热议问题