ios,xcode 8.0构建版本失效问题,
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ios,xcode 8.0构建版本失效问题,相关的知识,希望对你有一定的参考价值。
xcode升级到8.0之后,第一次提交版本更新,遇到了很多的坑。自己已经提交过很多版本了,对提交版本也是轻车熟路。然而这一次提交一次版本让我等了好长时间。用xcode提交版本完成,但等了好长时间,在iTunes connect上一直刷新不出来。后来又重新提交了一个版本,还是刷新不出来。因为绑定的邮箱不是我保管,所以也没看邮箱。这才想起去看邮箱。邮箱内容如下:
Dear developer,
We have discovered one or more issues with your recent delivery for "物通配货货主版". To process your delivery, the following issues must be corrected:
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.
Though you are not required to fix the following issues, we wanted to make you aware of them:
Missing Push Notification Entitlement - Your app includes an API for Apple‘s Push Notification service, but the aps-environment entitlement is missing from the app‘s signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.
Once the required corrections have been made, you can then redeliver the corrected binary.
Regards,
The App Store team
出现两个问题:一个是需要在Info.plist 文件中添加NSPhotoLibraryUsageDescription,这是APP访问用户相册没有做描述的缘故。ios 10更加注重用户的隐私保护,所以每次使用涉及用户隐私的功能都要在info.plist 文件中做相应的说明。比如:相机,定位,多媒体,麦克风,蓝牙等,根据实际情况做相应的处理。
第二个问题是推送的问题,我之前做了推送,只是测试的,这个版本并没有添加正式的推送,所以我要做的是You may remove the API from future submissions to stop this warning。把我做的推送API移除,刚开始并不知道怎么移除推送的API,查了很多资料,多为外国的文献或论坛,自己也弄得不是多清楚,好像是说不用管它。但是我还是把调用推送的代码屏蔽了,结果意外的好了。
然后重新提交,20分钟左右就刷新出来了。上面有我之前提交的版本,但都是无效的,最后提交的那个是有效的。
以上是关于ios,xcode 8.0构建版本失效问题,的主要内容,如果未能解决你的问题,请参考以下文章
自动首选最大布局宽度在 8.0 之前的 iOS 版本中不可用
Xamarin.iOS、Xcode 8.0、iOS 10.0 更新和 iPod Touch 测试设备
如果 registerForRemoteNotificationTypes: 在 iOS 8.0 及更高版本中不支持,则为 iOS 构建