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

Contacts plugin should gracefully handle error when permission is not declared #1

Open
evshi opened this issue Aug 10, 2023 · 1 comment

Comments

@evshi
Copy link

evshi commented Aug 10, 2023

Reproduction:

  1. Clone ensemble starter
  2. Enable contacts
  3. Make sure NSContactsUsageDescription is not info.plist
  4. Create a widget that uses contacts

Error:

2023-08-10 12:17:42.747718-0700 Runner[31111:29586773] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description.  The app's Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data.
Message from debugger: Terminated due to signal 6

App crashes

Resolution:

We should handle this error gracefully or prevent it so the app doesn't crash silently

Related PR:
https://github.com/EnsembleUI/tin_ensemble_app/pull/5

@evshi
Copy link
Author

evshi commented Aug 10, 2023

cc: @amin-nas @vinothvino42 @vusters

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

1 participant