flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [firebase_core] Firebase Core 2.24.2 can be built on Windows, but the executable file of the app may not start.

Open UnluckyY1 opened this issue 1 year ago • 6 comments

Bug report

After adding firebase_core to a new project and attempting to run the app on Windows, I encountered some warnings. The app was built successfully, but contrary to my expectation, the executable (exe) file did not launch, and the app window did not appear.

Logs

Click To Expand
Launching lib\main.dart on Windows in debug mode...
CMake Deprecation Warning at C:/push_notification_poc/build/windows/x64/extracted/firebase_cpp_sdk_windows/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_app_desktop.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_app_desktop.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_log.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_log.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_app_options.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_app_options.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_app_common.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_app_common.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_mutex_windows.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_mutex_windows.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_date_provider.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_date_provider.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_heartbeat_controller_desktop.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_heartbeat_controller_desktop.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_log_stdio.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_log_stdio.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d3d7d08a438878e74aeb2cbaaedfc967_flatbuffers.dir_Debug_idl_parser.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d3d7d08a438878e74aeb2cbaaedfc967_flatbuffers.dir_Debug_idl_parser.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_google_services_resource.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_google_services_resource.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_logger.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_logger.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_callback.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_callback.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_cleanup_notifier.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_cleanup_notifier.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_util.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_util.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_heartbeat_storage_desktop.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_heartbeat_storage_desktop.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_scheduler.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_scheduler.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_zlibwrapper.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_zlibwrapper.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_base64.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_base64.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_variant.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_variant.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_variant_util.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_variant_util.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d3d7d08a438878e74aeb2cbaaedfc967_flatbuffers.dir_Debug_util.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d3d7d08a438878e74aeb2cbaaedfc967_flatbuffers.dir_Debug_util.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_reference_counted_future_impl.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_reference_counted_future_impl.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_filesystem_desktop_windows.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_filesystem_desktop_windows.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_thread_cpp11.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_thread_cpp11.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_deflate.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_deflate.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_inflate.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_inflate.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_crc32.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_crc32.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_gzipheader.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_gzipheader.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_adler32.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_adler32.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_zutil.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_zutil.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_trees.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_trees.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_inftrees.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_inftrees.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_inffast.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(f6e938409d15d4e67858d89bcb981e00_zlibstatic.dir_Debug_inffast.obj)' or at ''; linking object as if no debug info [C:\push_notification_poc\build\windows\x64\runner\push_notification_poc.vcxproj]
Building Windows application...                                    60.6s
√  Built build\windows\x64\runner\Debug\push_notification_poc.exe.

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a new Flutter project that supports 3 platforms: Android, iOS, and Windows.
  2. Execute the command flutter pub add firebase_core.
  3. Run the project using the command flutter run.

Expected behavior

While firebase_core explicitly indicates Windows support on pub.dev, there is currently no documentation available for it. It remains unclear whether Windows is indeed supported. Moreover, while I don't necessarily plan to integrate Firebase with my Windows app, I expect to run my app on Windows without encountering any issues.

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.8, on Microsoft Windows [version 10.0.22631.3007], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.8.5)
[√] Android Studio (version 2023.1)
[√] VS Code (version 1.85.2)
[√] Connected device (3 available)
[√] Network resources

• No issues found!

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
Flutter SDK 3.16.8
push_notification_poc 1.0.0+1

dependencies:
- cupertino_icons 1.0.6
- firebase_core 2.24.2 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math web sky_engine]

dev dependencies:
- flutter_lints 2.0.3 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math async boolean_selector characters collection material_color_utilities meta source_span stream_channel string_scanner term_glyph web]

transitive dependencies:
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- characters 1.3.0
- clock 1.1.1
- collection 1.18.0
- fake_async 1.3.1 [clock collection]
- firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.10.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web]
- js 0.6.7 [meta]
- lints 2.1.1
- matcher 0.12.16 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.5.0 [collection]
- meta 1.10.0
- path 1.8.3
- plugin_platform_interface 2.1.8 [meta]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.1 [path]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- vector_math 2.1.4
- web 0.3.0

UnluckyY1 avatar Jan 25 '24 09:01 UnluckyY1

Hi @UnluckyY1, if you remove the firebase_core plugin, are you able to run the app properly? Typically, once the app is built, the plugin doesn't have any control over anything else. I also tried on my windows laptop and the app built and opened just fine.

danagbemava-nc avatar Jan 25 '24 12:01 danagbemava-nc

HI @danagbemava-nc sorry for the late response i can confirm that removing firebase_core plugin will resolve issue but puting it back will result the same issue

UnluckyY1 avatar Jan 29 '24 15:01 UnluckyY1

@UnluckyY1, can we get the full output of flutter run -v? The output may be huge so kindly put it into a .txt file and attach it here.

Thank you

danagbemava-nc avatar Jan 30 '24 10:01 danagbemava-nc

logs.txt

@danagbemava-nc

UnluckyY1 avatar Jan 30 '24 10:01 UnluckyY1

Hi @UnluckyY1, please provide the code sample you're running in a repository that we can clone so that we can investigate this.

Thank you

danagbemava-nc avatar Jan 31 '24 10:01 danagbemava-nc

Hey @UnluckyY1. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Feb 09 '24 02:02 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@UnluckyY1 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Feb 20 '24 02:02 google-oss-bot