Search Issue Tracker

Fixed in 5.3.9

Votes

0

Found in

5.3.5p7

Issue ID

813396

Regression

No

[iOS] Using device camera on iOS 10 causes the application to be terminated

iOS

-

Steps to reproduce:
1) Open the attached project.
2) Build and deploy to an iOS 10 device.

The build crashes instantly, an error message appears in the Xcode console:
'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.'

Comments (32)

  1. bsgbryan

    Sep 13, 2016 09:59

    My game cannot be submitted to the app store because of this error - except that my game does not use the camera, does not request access, and at no point have I ever checked any boxes saying my game needs access to the phone's camera.

    This is a bug in Unity.

  2. CMHatch

    Aug 09, 2016 04:40

    You simply have to select the top most item on the left column (the main project) in Xcode. Then in the top menu that appears, select "info". You will see a long list of pre-existing .plist items. Hover over the last one and you will see a "+" and a "-" icon appear. Click the "+" and go down the resulting list until you see "privacy-Camera...". Add this item to by clicking it inside that list. Upon doing so, your game/app should build out to iOS 10 without a hitch.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.