Help us understand the problem. What is going on with this article?

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

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

・エラー内容
プロパティに
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/

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした