iOS开发小技巧真机相关iOS收藏

关于Xcode8上传APP成功 iTunesConnect无法构

2016-09-21  本文已影响1903人  Mikebanana

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

上一篇 下一篇

猜你喜欢

热点阅读