美文网首页
ios xcode8点击相机或者相册程序崩溃,上传itunes

ios xcode8点击相机或者相册程序崩溃,上传itunes

作者: fulen | 来源:发表于2016-09-27 21:13 被阅读114次

1、上传成功之后,但是在处理过程中失败

处理上传完成的项目

1.1 处理完成后,构建版本消失,我重复试了好几次但是还是失败,后来查看开发者账号邮件,邮件上说

This app attempts 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.

This app attempts 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.

1.2 邮件的意思是必须在项目的info.plist文件中加入两个键值对

<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
相机权限
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
相册权限
 上面的cameraDesciption和photoLibraryDesciption可以随便添加自定义语句,没有格式要求

因为ios 10加入了对相机及相册的隐私访问,其他蓝牙等如果项目中有用到也必须相应的添加进去,这里不做一一介绍,加入此两个键值对之后,重新build,重新上传即可构建成功。如图添加完成后的info.plist文件

添加的键值对

博客地址:http://blog.sina.com.cn/s/blog_c70304d60102x9jf.html

相关文章

网友评论

      本文标题:ios xcode8点击相机或者相册程序崩溃,上传itunes

      本文链接:https://www.haomeiwen.com/subject/tvqhyttx.html