-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [firebase_core] Firebase Core 2.11.0 fails to build on Windows #10931
Comments
Updating Visual Studio seemed to resolve this issue when running in Debug, but when running in release mode we get a different error:
|
Digging into this a bit more, the CMakeList file for the firebase SDK decides which pre-built library to link against like so:
The problem is that My workaround for now is to add |
Thanks for the report and detailed analysis on the issue @insertjokehere |
Hi,
This comment states that "Unfortunately, Firebase does not have official Windows desktop support for production applications" - except that firebase_core v2.11.0 "add support for Windows via Firebase C++ desktop SDK" We don't actually use flutterfire on Windows - we have our own solution to deal with the lack of desktop support - but we have one code base that supports Android, iOS and Windows, disabling different features where appropriate. I don't need FlutterFire to work on Windows - I understand that support for that is still coming - but I do need it not to prevent me from compiling my app if Please look at my example code and try to run it in release mode - it should work, but doesn't. |
Thanks for the feedback. I am seeing the same behavior upon following the steps to replicate. |
Why is this closed? What is the proposed fix, as I'm running into the same issue. |
It's closed because it has been merged but it's not on the latest version. Is there a temporary fix for it until it's released? |
Any temporary fix will be of great help, as I'm not able to build my app for release. |
I tried your proposed hack, but it gets stuck on building msix files. |
@abdimussa87 #10972 has fixed the bug, but an update with the fix hasn't been released yet. You'll need to either wait for the release, or update your pubspec to use the specific git commit (4897fa0) rather than a released version, like so: dependencies:
firebase_core:
git:
url: https://github.com/firebase/flutterfire.git
ref: 4897fa02e2963961f24f1ff3a5b8d5e890e919ce
path: packages/firebase_core/firebase_core See https://dart.dev/tools/pub/dependencies#git-packages for docs on this. |
@insertjokehere thank you, but this leads to other firebase dependencies not being able to get the firebase_core.
|
@insertjokehere What am I doing wrong with what you suggested? |
Have the same issue as abdimussa87 |
I have the same issue on 2.13.0 and @insertjokehere's workaround works. |
@DmitrySikorsky how did you manage to get it to work alongside other flutterfire packages e.g firebase_auth etc...? |
@richard457 I need only FCM in my project. I only added that |
@insertjokehere facing this error warning LNK4099: PDB 'firebase_app.pdb' was not found with when adding dependencies:
firebase_core:
git:
url: https://github.com/firebase/flutterfire.git
ref: 4897fa02e2963961f24f1ff3a5b8d5e890e919ce
path: packages/firebase_core/firebase_core |
Thanks to @DmitrySikorsky but the workaround did not work for me as well |
mode... |
@insertjokehere I don't know why this was closed, It is clearly not fixed. |
Persists with 2.13.0. |
Bug report
Describe the bug
After adding
firebase_core
2.11.0 to a Flutter project that supports Windows, the Windows build will fail to compile if built in release mode:Steps to reproduce
Steps to reproduce the behavior:
flutter create --platform windows firebase_test
flutter pub get
flutter run -d windows --release
Expected behavior
Firebase should not break builds on the Windows platform
Sample project
https://github.com/insertjokehere/firebase-compile-error-windows
Additional context
I've tried running
flutterfire configure
, but it seems like this tool does not support Windows builds yet?Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: