I\'ve recently updated to Swift 3 in Xcode 8 using the developer beta. I\'m trying to implement Firebase Auth, and everything\'s going well.
My Problem:
I\'m
Follow the error message from xCode, and add key/value to Info.plist
of application.
For example, I got an error message from my developing app. It reminds me to add NSCameraUsageDescription
to app's Info.plist.
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.
Add key/value
pair to Localizable.strings
, it will give i18n
support.
For example, I add a pair to Localizable.strings (English)
. It will give English description when ask user about camera permission.
"NSCameraUsageDescription" = "We needs camera permission to capture image.";
I think you need to add privacy - key
for camara and photo library in your info.plist
file as from xcode 8
. for example,
Key : Privacy - Media Library Usage Description
Value : YES
Key : Privacy - Photo Library Usage Description
Value : YES
Key : Privacy - Camara Usage Description
Value : YES
here value is string
not Boolean
.
so try this.
Check Apple documentation for more details!
Reference : this so post