问题:“This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.”
解决方式:在info.plist中添加,即在Information Property List后点选加号➕
相机权限
key输入:NSCameraUsageDescription
value输入:cameraDesciption (注:此为字符串类型,String)
相册权限
key输入:NSPhotoLibraryUsageDescription
value输入:photoLibraryDesciption (注:此为字符串类型,String)
以下是添加完成后的效果