zoukankan      html  css  js  c++  java
  • 苹果审核之遇到IPV6问题被拒的解决方法

    • 情景:

      等待苹果审核上线时,发现因为IPV6被拒了。这是悲剧,以下是苹果审核给我的理由:

    We discovered one or more bugs in your app when reviewed on iPad running iOS 11.4.1 on Wi-Fi connected to an IPv6 network.

Specifically, your app displayed an error message upon launch.

Next Steps

To resolve this issue, please run your app on a device to identify any issues, then revise and resubmit your app for review.

If we misunderstood the intended behavior of your app, please reply to this message in Resolution Center to provide information on how these features were intended to work.

For new apps, uninstall all previous versions of your app from a device, then install and follow the steps to reproduce the issue. For updates, install the new version as an update to the previous version, then follow the steps to reproduce the issue.

Resources

For information about testing your app and preparing it for review, please see Technical Note TN2431: App Testing Guide. 

For a networking overview, please review About Networking. For a more specific overview of App Review’s IPv6 requirements, please review the IPv6 and App Review discussion on the Apple Developer Forum.

Please see attached screenshot for details.


      还附了一张图:

    • 思考与排查:

         用自己的网络请求是没有任何问题的,但是到了苹果审核就提示网络问题;但是,首页的数据已经出来了,这个说明,其实接口在ipv6的情况下是可以调用的,排除链接不上ipv6网络的问题。那么这个网络请求失败是哪里来的呢?

         与朋友几番讨论,可能存在这样的问题:就是在申请网络使用权限之前,就开始走网络请求了,因此在申请网络使用权限之前的借口会被拒,导致接口请求失败。

    • 解决方法:

      顺着这个思路,做了一个投机取巧的方法,就是在appdelegate的didFinishLauch方法里面,先调用一个不相干的接口,比如“百度”,这样第一个申请网络请求的接口不通过也不会导致程序其他的相关接口。

    • 代码如下:

    第一步:声明一个调用百度请求的方法 

    第二步:在appdelegate调用这个方法

      按照这个修改,重新提交了一个版本,第二天审核就通过了。

      此方法仅供参考,望遇到类似问题的队友们能有所帮助。

  • 相关阅读:
    屠蛟之路_重伤的屠蛟俊_ThirdDay
    屠蛟之路_重登数据库大山_SecondDay
    屠蛟之路_你的名字_FirstDay
    Beta版本冲刺计划及安排
    软件工程作业1203
    导师互选系统 Alpha版冲刺总结
    屠龙之路_项目测试
    【Alpha】十天屠龙记
    屠龙之路_冲刺总结随笔
    My97日历控件常用功能记录
  • 原文地址:https://www.cnblogs.com/lyz0925/p/9508601.html
Copyright © 2011-2022 走看看