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

GUI Crashes on macOS Due to Missing Bluetooth Usage Description in Info.plist #9

Open
Kennisoan opened this issue Aug 22, 2024 · 1 comment

Comments

@Kennisoan
Copy link

Description:
I'm encountering a crash when running my GUI on macOS 14.2. The error message indicates that the app is attempting to access privacy-sensitive data without a usage description in the Info.plist file. Specifically, the crash occurs because the NSBluetoothAlwaysUsageDescription key is missing, which is required by macOS for apps that use Bluetooth.

Steps to Reproduce:

  1. Run the GUI on macOS 14.2 (Sonoma).
  2. Observe the crash with the error message related to missing privacy-sensitive data usage description.

What I've Tried:

  • Attempted to locate and modify the Info.plist file within my Python environment, but the file does not seem to exist in the typical locations, especially within a Poetry-managed virtual environment.
  • Considered packaging the app with pyinstaller or py2app, but I would prefer a solution that allows the app to run directly during development.

Error Log:

Process:               Python [58031]
Path:                  /usr/local/Cellar/[email protected]/3.12.5/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               3.12.5 (3.12.5)
Code Type:             X86-64 (Translated)
Parent Process:        zsh [41171]
Responsible:           stable [72929]
User ID:               501

Date/Time:             2024-08-22 03:43:42.8742 +0300
OS Version:            macOS 14.2 (23C63)
Report Version:        12

System Integrity Protection: enabled

Crashed Thread:        8  Dispatch queue: com.apple.root.default-qos

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

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.
[...]

Environment:

  • macOS 14.2 (Sonoma)
  • Python 3.12.5
  • Virtual environment managed by Poetry

Could you please advise on how to resolve this issue?

@timmead
Copy link

timmead commented Nov 11, 2024

Experiencing the same issue.

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

3 participants
@timmead @Kennisoan and others