Skip to content

[bug]: ios build failed with upload-crashlytics-symbols in Runner.xcodeproj/project.pbxproj #385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
wch930 opened this issue Apr 7, 2025 · 5 comments
Open
1 task done
Labels
bug Something isn't working Needs Attention OP created or responded to issue and it needs attention.

Comments

@wch930
Copy link

wch930 commented Apr 7, 2025

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

1.1.0

Firebase Tools version

13.34.0

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.27.4, on macOS 15.3.2 24D81 darwin-arm64, locale en-US)
• Flutter version 3.27.4 on channel stable at /Users/paulwang/fvm/versions/3.27.4
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d8a9f9a52e (9 weeks ago), 2025-01-31 16:07:18 -0500
• Engine revision 82bd5b7209
• Dart version 3.6.2
• DevTools version 2.40.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/paulwang/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16C5032a
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)

[✓] VS Code (version 1.99.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.108.0

[✓] Connected device (5 available)
• Paul’s (mobile) • 00008110-001A19982138801E • ios • iOS 18.3.2 22D82
• iPhone 16 Pro Max (mobile) • E2A3A3A8-5257-4B22-B5A2-3128D990CD76 • ios • com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3.2 24D81 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.3.2 24D81 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 134.0.6998.167

[✓] Network resources
• All expected network resources are available.

• No issues found!

Description

After running the command flutterfire reconfigure, FlutterFire: "flutterfire upload-crashlytics-symbols" was added to Runner.xcodeproj/project.pbxproj. This caused an error when building the iOS side of the Flutter project.

Relevant error output:

  ERR : The current activation of `flutterfire_cli` cannot resolve to the same set of dependencies.
        | 
        | Try reactivating the package.
        | `dart pub global activate flutterfire_cli`
    FINE: Exception type: DataException
    FINE: package:pub/src/utils.dart 575:36                                dataError
        | package:pub/src/global_packages.dart 520:13                      GlobalPackages.runExecutable.<fn>
        | ===== asynchronous gap ===========================
        | dart:async                                                       Future.catchError
        | package:pub/src/utils.dart 140:10                                captureErrors.wrappedCallback
        | package:stack_trace                                              Chain.capture
        | package:pub/src/utils.dart 155:11                                captureErrors
        | package:pub/src/command.dart 196:13                              PubCommand.run
        | package:args/command_runner.dart 212:27                          CommandRunner.runCommand
        | package:dartdev/dartdev.dart 240:30                              DartdevRunner.runCommand
        | package:args/command_runner.dart 122:25                          CommandRunner.run.<fn>
        | dart:async                                                       new Future.sync
        | package:args/command_runner.dart 122:14                          CommandRunner.run
        | package:dartdev/dartdev.dart 47:29                               runDartdev
        | /Volumes/Work/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart 13:11  main

Building directly within Xcode works fine.

Removing the related lines from Runner.xcodeproj/project.pbxproj resolves the build issue.

Image

Image

Steps to reproduce

  1. Run the command flutterfire reconfigure after adding firebase_crashlytics package.
  2. run app in vscode on ios machine
  3. got output of build error of xcode

Expected behavior

The app starts normally

Screenshots

No response

Additional context and comments

No response

@wch930 wch930 added bug Something isn't working triage labels Apr 7, 2025
@WojciechTrzasko
Copy link

We encountered the same issue today when the CI is building the application.
Has anyone found a solution? Or could someone perhaps point out the exact cause?

@github-actions github-actions bot added the Needs Attention OP created or responded to issue and it needs attention. label Apr 11, 2025
@FeDev9

This comment has been minimized.

@russellwheatley
Copy link
Member

@wch930 - hmmm, I wonder if this is a problem with how we call flutterfire from Xcode: https://github.com/invertase/flutterfire_cli/blob/main/packages/flutterfire_cli/lib/src/firebase/firebase_apple_writes.dart#L393

This error suggests it is calling a different version of FlutterFire CLI:

  ERR : The current activation of `flutterfire_cli` cannot resolve to the same set of dependencies.

Is it possible you have two global installations which have a different set of dependencies?

@russellwheatley russellwheatley added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed triage labels Apr 15, 2025
@hemid32

This comment has been minimized.

@russellwheatley russellwheatley removed the Needs Attention OP created or responded to issue and it needs attention. label Apr 15, 2025
@wch930
Copy link
Author

wch930 commented Apr 16, 2025

The issue is caused by using FVM on my project with version 3.27.4, while the global Flutter was 3.29.0 which I configured without FVM. Switching the global Flutter environment to 3.27.4 within FVM and reactivating the Flutterfire_cli solved the problem.

Thanks @russellwheatley for the hint.

@github-actions github-actions bot added Needs Attention OP created or responded to issue and it needs attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs Attention OP created or responded to issue and it needs attention.
Projects
None yet
Development

No branches or pull requests

5 participants