gpt4 book ai didi

ios - 应用因 IPV6 问题被 App Store 拒绝

转载 作者:行者123 更新时间:2023-11-29 00:23:11 30 4
gpt4 key购买 nike

由于 IPV6 问题,我的应用被应用商店拒绝。这是 App Store 的信息

  1. 1 Performance: App Completeness Guideline 2.1 - Performance

Your app crashed on iPad running iOS 10.3.1 connected to an IPv6 network when we:

entered the provided credentials. The app loaded for a second and then crashed. When relaunching the app it appears we’re stilled “logged in” but the app loads for a moment and crashes again.

This occurred when your app was used:

  • On Wi-Fi

We have attached detailed crash logs to help troubleshoot this issue.

Next Steps

To resolve this issue, please revise your app and test it on a device while connected to an IPv6 network (all apps must support IPv6) to ensure that it runs as expected.

Resources

For information on how to symbolicate and read a crash log, please review Tech Note TN2151 Understanding and Analyzing Application Crash Reports.

For information about supporting IPv6 Networks, please review Supporting IPv6 DNS64/NAT64 Networks and About Networking.

我该如何解决这个问题?

最佳答案

我在 iOS 中遇到过这个问题。比我更改我的 reachblility 类互联网连接方法和我的应用程序批准。如果你想在你的系统中建立 Ipv6 网络,请检查

https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html

objective-c

+ (instancetype)reachabilityForInternetConnection
{
struct sockaddr_in6 zeroAddress;
bzero(&zeroAddress, sizeof(zeroAddress));
zeroAddress.sin6_len = sizeof(zeroAddress);
zeroAddress.sin6_family = AF_INET6;
return [self reachabilityWithAddress: (const struct sockaddr *) &zeroAddress];
}

swift 3

 func ipv6Reachability() -> SCNetworkReachability? 
{
var zeroAddress = sockaddr_in6()
zeroAddress.sin6_len = UInt8(MemoryLayout<sockaddr_in>.size)
zeroAddress.sin6_family = sa_family_t(AF_INET6)

return withUnsafePointer(to: &zeroAddress, {
$0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
SCNetworkReachabilityCreateWithAddress(nil, $0)
}
})
}

关于ios - 应用因 IPV6 问题被 App Store 拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43797597/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com