Flutter + Firebase + IOS Build issue?

658 views
Skip to first unread message

Bridget Kelly O'Sheehan

unread,
Nov 4, 2021, 10:31:33 AM11/4/21
to Flutter Development (flutter-dev)
Hello,

Bit of a weird one, I have no idea why i'm getting the following errors with a build for IOS simulator. 

I have tried deleting the pod file, reinstalling, flutter clean build etc but no idea.

Any help would be greatly appreciated.

 While building module 'firebase_core' imported from

    /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-9.1.4/ios/Classes/FLTFirebaseMessagingPlugin.m:6:

    In file included from <module-includes>:1:

    In file included from /Users/lyntree/apps/AudioDamage/ad/ios/Pods/Target Support Files/firebase_core/firebase_core-umbrella.h:13:

    In file included from /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.8.0/ios/Classes/FLTFirebaseCorePlugin.h:12:

    /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.8.0/ios/Classes/FLTFirebasePlugin.h:9:9: error: include of non-modular header inside framework

    module 'firebase_core.FLTFirebasePlugin': '/Users/lyntree/apps/AudioDamage/ad/ios/Pods/Headers/Public/FirebaseCore/FirebaseCore.h'

    [-Werror,-Wnon-modular-include-in-framework-module]

    #import <FirebaseCore/FirebaseCore.h>

            ^

    1 error generated.

    /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-9.1.4/ios/Classes/FLTFirebaseMessagingPlugin.m:6:9: fatal error: could not build module

    'firebase_core'

    #import <firebase_core/FLTFirebasePluginRegistry.h>

     ~~~~~~~^

    2 errors generated.

    note: Using new build system

    note: Building targets in parallel

    note: Planning build

    note: Constructing build description

Reply all
Reply to author
Forward
0 new messages