手机系统升级了 iOS10访问相册、通讯录、话筒出现以下崩溃信息:
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSContactsUsageDescripti
ps:你需要在info.plist文件 添加一个“NSContactsUsageDescripti
1,在项目中找到info.plist文件,右击有个 Open As,以Source Code 的形式打开
2,分别复制 以下 Value 和Key,Key 一定不能错,Value 貌似可以随便填写
相机权限描述:
Key:NSCameraUsageDescriptionType:StringValue:cameraDesciption
Key:NSContactsUsageDescriptionType:StringValue:contactsDesciption
Key:NSMicrophoneUsageDescriptionType:StringValue:microphoneDesciption
Key:NSPhotoLibraryUsageDescriptionType:StringValue:photoLibraryDesciption
然后,搞定!