1.部分无法构建版本的解决方案
最近app上传的时候碰到了的,上传了好多次后台都没有构建出新版本,老大那个催啊,问这个,问那个,大神都告诉我经验解决不了这些问题,后来一看苹果给回复的邮件才懂了
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.
iOS10好像访问隐私数据需要使用说明,说白了就是要在info.plist文件里增加两个键值对如图一
<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
相机权限
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
相册权限
2.打印出来一大堆无用的东西(我也不知道有没有用)
想要把它关掉也很简单,来跟我做:
(1)同时按住comd+shift +, 或者点击如图二所示的Edit Scheme
(2)如图三选择Run->Argument->Environment Variables 添一个键值对
(3)键值对如下,大功告成
key:OS_ACTIVITY_MODE
value:disable