App Store Rejection: 'TLS error' in IPv6-only environments
如果你的 App Store 提交在仅 IPv6 的环境下测试时被拒,提示“TLS 错误”,并经常提到缺少 AAAA 记录,这通常说明是应用层的问题,而不是 Supabase 的配置问题。
🌐 If your App Store submission is rejected with a 'TLS error' when tested in an IPv6-only environment, often citing a lack of AAAA records, it typically indicates application-level issues rather than a Supabase configuration problem.
这为什么会发生? #
🌐 Why does this happen?
Supabase 项目设计时考虑了对仅 IPv6 的 NAT64/DNS64 环境的兼容性,通过自动的 IPv4 到 IPv6 转换实现。这意味着你的 *.supabase.co 域名不需要显式的 AAAA 记录。'TLS 错误' 通常指的是应用处理网络请求的方式,这可能会干扰这种自动转换。
🌐 Supabase projects are designed for compatibility with IPv6-only NAT64/DNS64 environments through automatic IPv4-to-IPv6 translation. This means explicit AAAA records are not required for your *.supabase.co domain. The 'TLS error' usually points to how the application handles networking requests, which can interfere with this automatic translation.
如何解决这个问题 #
🌐 How to resolve this issue
- 确保你使用的是主机名,而不是IP地址——在你的代码中处处使用 project-ref.supabase.co。详见 支持 IPv6 DNS64/NAT64 网络
- 使用像
URLSession这样的高级网络 API,它能自动处理 IPv6。查看URLSession文档 - 查看你的应用传输安全设置。请参阅 防止不安全的网络连接
- 使用苹果的网络连接调节器在仅 IPv6 的环境中测试你的应用。参见 IPv6 DNS64/NAT64 兼容性测试