bitsdojo / bitsdojo_window

A Flutter package that makes it easy to customize and work with your Flutter desktop app window.
http://www.youtube.com/watch?v=bee2AHQpGK4
MIT License
815 stars 229 forks source link

Flutter macOS app won't run after adding bitsdojo_window: Secure coding warning #253

Closed yeshu-cn closed 9 months ago

yeshu-cn commented 9 months ago

After adding this library to my Flutter macOS app, the app no longer runs and the following error message is displayed in the console:

2024-02-21 10:44:16.798 untitled2[4158:40784] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.

Steps to reproduce:

Expected behaviro:

The app should launch and display a window without any errors.

Actual behavior:

The app window not show, and the warning message displayed in the console:

Launching lib/main.dart on macOS in debug mode...
Building macOS application...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006030-000E50400AD0001C }
{ platform:macOS, arch:x86_64, id:00006030-000E50400AD0001C }
2024-02-21 10:44:16.798 untitled2[4158:40784] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
Debug service listening on ws://127.0.0.1:56441/ewrldICfNDw=/ws
Syncing files to device macOS...

Environment:

Flutter 3.19.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision bae5e49bc2 (7 days ago) • 2024-02-13 17:46:18 -0800 Engine • revision 04817c99c9 Tools • Dart 3.3.0 • DevTools 2.31.1

macOS 14.1 Apple M3 Pro

yeshu-cn commented 9 months ago

https://github.com/bitsdojo/bitsdojo_window/issues/250