Conflicts with FlutterFire and native GeoFire plugin on iOS

前端 未结 2 1794
野性不改
野性不改 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: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

提交回复
热议问题