ssk blog

バンコクで働くエンジニアのメモ

iOSアプリが「IPv6 networkで通信できない」って言われてリジェクトされたときの対応方法

最近、以下のメッセージがきてAppleにリジェクトされました。
今までこの指摘なかったし、IPv6環境で通信できていない...(できると思っていたけど)

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


原文

Guideline 2.1 - Performance - App Completeness

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

Specifically, we received a network error.

Please see attached screenshots for details.

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.


対応方法を調べてみると、IPv4でしか使えないAPIIPv4 を前提とした変数/構造体を使っている場合にアプリの動作が止まったりするそうです。
対応がめんどくさそうだ...

qiita.com


とりあえず、IPv6環境で使えるのか試してみることに。
IPv6環境でiOSアプリの動作を確認する方法は、こちらを参考にしてください。


問題なく動く!!!


Appleに「IPv6環境でテストしたよ」ってことを証明するスクショを添付して「問題なく動きます」的なメッセージをしました。

f:id:ssktm:20171115203729p:plain:w200


何事もなかったように申請が通りました!^^