attempted to access privacy-sensitive data without a usage description 🍎 iOS

This app has crashed because it attempted to access privacy-sensitive data without a usage description

The app requested camera, photos, microphone, location, contacts, etc. without the required NS…UsageDescription in Info.plist, so iOS terminated it.

Seen on: iOS

Meaning

The crash log names the missing key. Add it to the app’s Info.plist (or INFOPLIST_KEY_* build settings for generated plists).

Common causes

  • Missing usage description key
  • Key added to the wrong target/plist
  • Generated Info.plist without INFOPLIST_KEY_ settings

⚡ Quick fix

  1. Add the named key with a user-facing explanation
  2. For generated plists, add it under Info tab or INFOPLIST_KEY_NSCameraUsageDescription

Detailed fix by platform

XML

  1. swift
    <key>NSPhotoLibraryUsageDescription</key>
    <string>Choose photos to attach to your notes.</string>

How to diagnose

  1. Key — Named in the crash
  2. Plist — Which Info.plist the target uses

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.