Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua
http://www.hammerspoon.org
MIT License
12.08k stars 582 forks source link

Crash on Sonoma due to missing Info.plist key #3684

Open kriomant opened 2 months ago

kriomant commented 2 months ago

After upgrading Mac to Sonoma Hammerspoon crashes on startup. Problem report says:

Termination Reason:    Namespace TCC, Code 0 
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.

Adding this key to Info.plist helps. Hammerspoon starts. I have problems enabling accessibility access, but this may be non-related issue.

latenitefilms commented 2 months ago

Huh, you must be one of the few Hammerspoon users using Bluetooth for stuff! Good spotting!

latenitefilms commented 2 months ago

Probably a few more ones we need to add from here too:

https://developer.apple.com/documentation/bundleresources/information_property_list/protected_resources