-
Notifications
You must be signed in to change notification settings - Fork 0
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
Build Mizuame with Swift 6 #196
Comments
I encountered an error "Reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state". Mizuame/Mizuame/MizuameApp.swift Line 73 in 566acff
![]() |
See. |
Fixed: 9b61749 |
AXIsProcessTrustedWithOptions(_ options:) We should request accessibility permission from the user using AXIsProcessTrustedWithOptions(_ options:) and kAXTrustedCheckOptionPrompt, but a reference error for kAXTrustedCheckOptionPrompt occurs in Swift 6. However, I recall that in Swift 5, when the app sandbox was enabled, no alert requesting accessibility permission appeared even with AXIsProcessTrustedWithOptions(_ options:). In that case, maybe we can forego using AXIsProcessTrustedWithOptions(_ options:) by creating our own alert for requesting accessibility permission (in fact, we already do), and still achieve the same result. |
9b61749: The mention of macOS 13 or later below turned out to be completely irrelevant.
|
955cbd9: Fixed the test |
#199 : Pull request. |
No description provided.
The text was updated successfully, but these errors were encountered: