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:
Create a new flutter project
Add the dependence bitsdojo_window: ^0.1.6
Edit the macos\runner\MainFlutterWindow.swift as descript in the readme
Run the app on macOS
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...
After adding this library to my Flutter macOS app, the app no longer runs and the following error message is displayed in the console:
Steps to reproduce:
bitsdojo_window: ^0.1.6
macos\runner\MainFlutterWindow.swift
as descript in the readmeExpected 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:
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