Search code examples
swiftfirebaseflutterframeworkscarthage

Error import framework ios (with Firebase Carthage) in project Flutter


I have a swift personal framework which content Firebase adding with Carthage. This framework work perfectly in other native app iOS. The problem is when I try to import this framework in a Flutter project. The next image show the error:

Error GoogleAppMeasurement

If I delete this framework, the app show multiple errors, so I think that a I need this. The next image show all of frameworks that content the library:

All firebase Framework

I don't know what I can do more... Could someone help me please?


Solution

  • From https://github.com/firebase/firebase-ios-sdk/blob/master/Carthage.md:

    Please note that you shouldn't add any of the Firebase frameworks to the Carthage build phase (copy-frameworks). The frameworks contain static libraries that are linked at build time.