Guideline 2.5.5: IPv6 networks
Apps must work fully on networks that only support IPv6.
Part of Guideline 2.5: Software Requirements
The app connects to a hard-coded IPv4 address
What Apple wants
undefined App Review tests on an IPv6-only network, where an IPv4 address written into the app can't be reached, so whatever it serves fails for the reviewer (Guideline 2.5.5).
How to fix it
Reach the server by its host name instead of its IPv4 address.
Steps
- Find the address on this card in the code and configuration.
- Use the host name of that server instead (it resolves on IPv6-only networks), and use the system's networking APIs rather than raw sockets to an address.
- Run the test again.
Networking may fail on IPv6-only networks
What Apple wants
App Review tests on IPv6-only networks, and the app has to work fully there (Guideline 2.5.5). Hard-coded IPv4 addresses and IPv4-only socket code can fail.
How to fix it
Use hostnames over HTTPS with the system's standard networking APIs.
Steps
- Replace IP addresses with a hostname.
- Replace IPv4-only socket code with URLSession, fetch or the Network framework.
Check your app for this, and everything else reviewers flag
AppScend scans your project on your Mac, ranks what will get it rejected, and your own coding agent fixes it on a branch you review.
npx appscend