更新Xcode8之后App一直没有更新新的版本,昨天更新一次发现好多坑,在这里做一个总结。
最开始我还是按照原来的步骤一步步的提交没有一点问题,然后就一直等,等着构建版本,但是一直等了两三个小时还是不能构建版本。
后来看手机受到这个推送也就是说你上传的是无效的二进制。
然后各种百度查到怎么处理,最后总结主要是三个原因:
1、权限问题,原来iOS 10对用户的隐私数据保护更强了,例如在iOS 10中,在访问相机时,也需要在Info.plist中进行相应的配置,并且value不能为空,否则app会crash。所以我们要做的就是把app中所有用到的访问用户隐私的地方加到Info.plist中,例如在我们的app中用到了蓝牙、相机、图库、麦克风,就需要进行如下配置。
我为了防止万一,把所有的都给配置了,你们可以根据你们的需求酌情处理,如果能有开发者账号,可以去这个邮箱查看,里面会给你说你那个权限没有开放你直接加上就OK了。
2.我加上所有权限之后继续上传发现还是不行,然后就要了开发者账号绑定的邮箱,看里面邮件
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.
有这样一段描述,没办法,推送这里也要重新搞一下,我用的极光推送,导入最新的sdk设置,就好了。
3,认为一切都万事大吉了,打包又是失败,
This bundle is invalid - The value provided for the key MinimumOSVersion '7.1' is not acceptable.
就是Xcode8里面最低版本是iOS8.0 ,要兼容8.0以下的需要配置,具体方法可以参考【链接】iOS开发-Xcode8兼容iOS7手记
http://blog.youkuaiyun.com/CodingFire/article/details/52638265
或者直接改成最低版本8.0 就OK了