Skip to content

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

@evshi

Description

@evshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions