Skip to content
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

Cannot run with macOS #171

Open
htsuruo opened this issue Jul 22, 2023 · 10 comments
Open

Cannot run with macOS #171

htsuruo opened this issue Jul 22, 2023 · 10 comments

Comments

@htsuruo
Copy link

htsuruo commented Jul 22, 2023

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:

  1. Changed minimun target version 10.14 to 10.15 because 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
  1. flutter run -d macos

Expected behavior
Works fine this application with macOS.

Screenshots
image

Desktop (please complete the following information):

  • MacBook Pro M1(Apple Silicon)
  • macOS: Ventura 13.4.1
@mulaRahul
Copy link
Owner

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)?

@htsuruo
Copy link
Author

htsuruo commented Jul 22, 2023

@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.

SCR-20230723-bcpg-2

I tried flutter run with VS Code.

@mulaRahul
Copy link
Owner

You need to provide the permissions to VS Code as well, because technically where the app is running.

@mulaRahul
Copy link
Owner

Can you see any changes with v2.0.0a2?

@htsuruo
Copy link
Author

htsuruo commented Apr 30, 2024

@mulaRahul

Thank you for great work.

I just tried running with tag v2.0.0a2 as your comment. Unfortunately, the issue still occurred.

@mulaRahul
Copy link
Owner

Can you share logs/output like above?

@htsuruo
Copy link
Author

htsuruo commented May 3, 2024

@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!

@mulaRahul
Copy link
Owner

mulaRahul commented May 3, 2024 via email

@dnet5
Copy link

dnet5 commented May 4, 2024

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.

@foong
Copy link

foong commented May 10, 2024

same issue with me
Im on M3 Sonoma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants