Conflicts with FlutterFire and native GeoFire plugin on iOS

前端 未结 2 1793
野性不改
野性不改 2021-01-21 03:13

I\'m getting an error when I\'m trying to add GeoFire to my iOS Flutter project which has the FlutterFire Database plugin included. This is what the error looks like:

         


        
相关标签:
2条回答
  • 2021-01-21 03:43

    I faced the same kind of issue few days ago.

    I think I fixed it by doing the following steps:

    1. Run the command 'pod repo update' (it will update your repo information)
    2. Then run the command 'pod update' (it will update your pods using the latest repo information)

    Let me know if this is solving your issue :)

    0 讨论(0)
  • 2021-01-21 03:51

    Please try the approach suggested by Bjørn Børresen here:

    Since Flutter kind of abstracts away this Cocoapods process. Here's what I did to be able to run "pod repo / update":

    1. Run pod repo update
    2. Set the environment variable FLUTTER_FRAMEWORK_DIR to something that looks like /Users/youruser/bin/flutter/bin/cache/artifacts/engine/ios/. You can do a locate Flutter.podspec to find this directory
    3. From YourFlutterProject/ios run pod update

    After this you should be able to run your app again

    0 讨论(0)
提交回复
热议问题