7
6

More than 3 years have passed since last update.

【エラー】This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.

Posted at

このエラーはなに

ユーザーのプライバシーにアクセスするための説明が無い」と怒られている。
例えばアプリでフォトアルバムにアクセスするコードは書かれているけど、それに対するプライバシー設定がされていないと掲題のエラーが起こる。

設定する

Info.plist に設定を追加する。
カメラとフォトアルバムを使用する設定をそれぞれ追加した。

c93d1060b443c5fb8ab1878ebf40d828.png

アプリをAppStoreでリリースする際は Value をもっときちんとした形で書かなければいけないみたい。

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6