LoginSignup
4
1

More than 5 years have passed since last update.

iOSカメラのアクセス許可

Last updated at Posted at 2018-11-19

毎回ググっている気がするのでメモ

Xcodeビルドでカメラのアクセス許可でエラーが出るので...

[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 NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

PlayerSettings > Other Settings > Configuration > Camera Usage Descriptionを設定する。

スクリーンショット 2018-11-21 20.12.55.png

これでXCodeのinfo.plistPrivacy - Camera Usage Descriptionが追加されてアプリが起動するようになる。

参考
Info.plist - Requesting Permission Privacy Settings in iOS 10.

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