Skip to content

firebase_core Unable to build with firebase_core: 0.4.4+2 #2087

@TylerSustare

Description

@TylerSustare

Describe the bug

This bug is representing the comment I made here on the closed issue. flutter/flutter#35670 (comment)
Even trying @sensuikan1973's suggestion in the linked issue didn't work.

• flutter clean
• Clean Build Folder from Xcode
• delete Podfile.lock

But, this didn't work.

So, I deintegrate pod.

cd ios
pod deintegrate
pod install

To Reproduce

Steps to reproduce the behavior:
Attempting to build and run an iOS app with firebase_core: ^0.4.4+2 lead to

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Xcode build done.                                            5.6s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    /Users/tsustare/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4+2/darwin/Classes/FLTFirebaseCorePlugin.m:6:9: fatal error: 'UserAgent.h' file not found
    #import "UserAgent.h"
            ^~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning build
    note: Constructing build description
Could not build the application for the simulator.

Expected behavior

Starting the app using firebase_core: ^0.4.4+2 the same way it does when I use firebase_core: 0.4.3+3

Additional context

the rest of my firebase packages in pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  provider: ^4.0.4

  firebase_core: 0.4.3+3
  firebase_auth: ^0.15.4
  cloud_firestore: ^0.13.2+1
  firebase_analytics: ^5.0.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions