LoginSignup
0
1

More than 3 years have passed since last update.

UIImgaePickerControllerでビデオを撮ろうとすると強制終了する

Last updated at Posted at 2020-02-09

ちょっと忘れないようにメモ

・エラー内容
プロパティに
Privacy - Camera Usage Description(カメラ) を設定したが
UIImagePickercontrollerのmediaTypeをビデオにして起動すると強制終了する

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

対策
Privacy - Microphone Usage Description (マイク)の方もプロパティに設定すると強制終了しなくなった。

ビデオを撮るときににはマイクとカメラの二つの使用許可を撮る必要がある。

参考

[iOS 10] 各種ユーザーデータへアクセスする目的を記述することが必須になるようです
http://dev.classmethod.jp/smartphone/iphone/ios10-privacy-data-purpose-description/

0
1
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
0
1