keyviz
keyviz copied to clipboard
Cannot run with macOS
Describe the bug
Run this command for running with macos
flutter run -d macos
And then, output is here.
flutter: couldn't register mouse listener
flutter: cannot register keyboard listener!
Version: v2.0.0a
To Reproduce Steps to reproduce the behavior:
- Changed minimun target version
10.14to10.15because following error occurs.
/keyviz/macos/Flutter/GeneratedPluginRegistrant.swift:9:8: error: compiling for macOS 10.14, but module 'macos_window_utils' has a minimum deployment target of macOS 10.14.6: /keyviz/build/macos/Build/Products/Debug/macos_window_utils/macos_window_utils.framework/Modules/macos_window_utils.swiftmodule/arm64-apple-macos.swiftmodule
import macos_window_utils
flutter run -d macos
Expected behavior Works fine this application with macOS.
Screenshots
Desktop (please complete the following information):
- MacBook Pro M1(Apple Silicon)
- macOS: Ventura 13.4.1
Have you given permissions for input monitoring and accessibility Settings > Privacy & Security > Input Monitoring/Accessibility to keyviz (debug) and the terminal/vs code (where running flutter run command)?
@mulaRahul
Thanks for your reply.
Have you given permissions for input monitoring and accessibility Settings > Privacy & Security > Input Monitoring/Accessibility to keyviz (debug)
Yes. I added Input Monitoring/Accessibility permission to keyvz > build > macos > Build > Products > Debug > keyviz.app. But it does not work.
I tried flutter run with VS Code.
You need to provide the permissions to VS Code as well, because technically where the app is running.
Can you see any changes with v2.0.0a2?
@mulaRahul
Thank you for great work.
I just tried running with tag v2.0.0a2 as your comment. Unfortunately, the issue still occurred.
Can you share logs/output like above?
@mulaRahul
Apologize for late response. Here is all of logs.
Launching lib/main.dart on macOS in debug mode... --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00006001-001271510A41801E } { platform:macOS, arch:x86_64, id:00006001-001271510A41801E } 2024-05-03 22:18:12.367 keyviz[29568:56797777] 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:. Connecting to VM Service at ws://127.0.0.1:62701/2f-3bCO3MLA=/ws flutter: Failed to initialize listener backend flutter: couldn't register mouse listener flutter: cannot register keyboard listener!
Have given the above permissions?
Same stuff here. I was on a previous version (dunno which one, unfortunately) that was running just fine. But now, even giving the permissions on accessibility and input, the error keeps showing.
I don't have flutter installed, and never had. So, I don't know if that's the problem, once the old version was running just fine.
same issue with me Im on M3 Sonoma