Skip to content

bug: macOS build fails for firebase_editor on Apple Silicon #11

@x15sr71

Description

@x15sr71

Description

The firebase_editor project currently fails to build on macOS when running on Apple Silicon machines with modern toolchains. This prevents contributors from running or testing the project on macOS.


Errors Encountered

When running flutter run -d macos on macOS 15.6.1 (M4 Pro, ARM64) with Xcode 16.4 and Flutter 3.35.2, the following errors occur:

  1. Invalid plugin reference

    Error: Cannot find flutter_local_notifications:linux

  2. Clang unsupported option

    clang: error: unsupported option '-G' for target 'arm64-apple-macos10.12'

  3. Deployment target too low

    The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11/10.12,
    but the Pods project requires at least 10.13

  4. CocoaPods warnings & missing configuration

    • Multiple warnings about mismatched deployment target
    • Missing build phases and linking for Firebase dependencies

Screenshots

Click to expand error screenshots Image Image Image

Expected Behavior

  • flutter run -d macos should complete successfully
  • App should launch on macOS without dependency errors

Environment

  • macOS: 15.6.1 (24G90)
  • Chip: Apple M4 Pro (ARM64)
  • Xcode: 16.4 (Build 16F6)
  • Flutter: 3.35.2
  • CocoaPods: 1.16.2

Proposed Fix

I have prepared a fix that addresses these issues:

  • Remove invalid flutter_local_notifications:linux reference
  • Update macOS deployment target to 10.15 (minimum supported)
  • Add proper CocoaPods integration for Firebase
  • Configure Xcode project with required build phases
  • Update Swift AppDelegate to use @main annotation
  • Regenerate Podfile.lock with compatible versions

Next Steps

I’ll open a Pull Request with these changes for review.


👋 Hi, I’m Chandragupt, a new contributor to CCExtractor.
I’m opening this issue to document the problem and provide context for my upcoming PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions