ios - 为什么 Apple 向我发送消息说我的应用程序不支持 Ipv6?

标签 ios app-store afnetworking ipv6

我的申请被拒绝,信息如下:

发件人 Apple
1. 5 SAFETY: DEVELOPER INFORMATION
2. 1 PERFORMANCE: APP COMPLETENESS
Safety - 1.5

The support URL specified in your app’s metadata, http://hxsq.luminginfo.cn/, does not properly navigate to the intended destination.

Specifically, your support URL displayed “This site can’t be reached” error message.

Next Steps

Please revise your app’s support URL to ensure it directs users to a webpage with support information.

Performance - 2.1

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

Specifically, your app displayed a connection error when logging in with the provided demo accounts.

Please see attached screenshots for details.

Next Steps

Please run your app on a device while connected to an IPv6 network (all apps must support IPv6) 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 supporting IPv6 Networks, please refer to Supporting IPv6 DNS64/NAT64 Networks and About Networking. With the two follow images:

http://a1198.phobos.apple.com/us/r30/Purple122/v4/60/8b/eb/608bebae-1c3b-cc93-2a01-9f512965f622/attachment-3951093649653869315Screenshot-0217-073348.png?downloadKey3=1487836993_30f3e33d7be2d3ba3c3e89d7e3393952

http://a1225.phobos.apple.com/us/r30/Purple111/v4/58/78/7a/58787a76-b8a2-8016-e5fe-412c7fcaf8dc/attachment-8366771332257964417Screenshot-0217-073415.png?downloadKey3=1487836993_592f44ae84cf1f391301263be58175b6

1.首先,我不明白问题1.5

2.其次,我的应用程序使用 AFNetworking 3.1.0,并且在一个 swift-oc 混合项目中。

enter image description here enter image description here

我的网络Util是这样的,方法之一是list:

#import "Mysevers.h"
#import "AFNetworking.h"
#import "HUD.h"

@implementation Mysevers

+(void)AFPOSTWithHud:(BOOL)hud andAddressname:(NSString*)addressName parmas:(NSDictionary*)parmas RequestSuccess:(void(^)(id result))success failBlcok:(void(^)(void))failBlcok
{
    if (hud) {
        [HUD addHUD];
    }
    AFHTTPSessionManager *requestManager = [AFHTTPSessionManager manager];

    NSString *urlStr = [NSString stringWithFormat:@"%@%@",BASE_URL,addressName];
    NSLog(@"%@",urlStr);


    [requestManager POST:urlStr parameters:parmas progress:^(NSProgress * _Nonnull uploadProgress) {

    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {

        if (hud) {
            [HUD removeHUD];
        }
        success(responseObject);
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {

        if (error != nil) {
            NSLog(@"error==%@",[error localizedDescription]);
            if (hud) {
                [HUD removeHUD];
            }
            failBlcok();
        }

        return ;
    }];

}

注意

我的 BASE_URL 是:

#define BASE_URL @"https://hxsq.luminginfo.cn:8043/app/ "

附加-1

我测试了我本地的ipv6情况,可以登录。

DNS 是 ipv6 的。

而且我的app也可以登录,所以我不确定,我的应用支持ipv6!但是apple给我发了ipv6 issue,唯一疑惑的是我app里面的url(hxsq.luminginfo.cn)在国外访问不了,比如美国。

最佳答案

它表示您的支持 URL 不支持 IPv6。因此,它实际上可能与您的应用内网络代码无关。我只是试图在我的浏览器中加载该 URL,但它也失败了。 您必须有一个有效的支持 URL。

如果您确认这是您的应用内网络问题,您应该查看 this post作者是 Eskimo,他是 apple 的一名工程师。具体来说,您应该针对 IPv6 网络进行测试,您可以使用 these instructions 进行设置。 .如果您已完成核对 list 并确认 IPv6 在本地适用,您应该回复应用审查并要求他们重试。几周前我们遇到了同样的问题。

关于ios - 为什么 Apple 向我发送消息说我的应用程序不支持 Ipv6?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42357641/

相关文章:

objective-c - 如何在切换 subview 的同时围绕 x 轴翻转 UIView

ios - 没有使用 iTunes Connect Access 的帐户

ios - 如何在AFNetworking中使用AFHTTPClient设置超时间隔?

ios - 使iPhone App无法在App Store上搜索

ios - AFNetworking HTTP 删除使用正文而不是 URL

ios - 通过 AFNetworking 中的参数的对象数组

ios - swift 3 错误 : [_SwiftValue pointSize] unrecognized selector sent to instance

ios - 在 WKWebView 中检测 Youtube 播放按钮 Action

ios - 自定义表格 View 多选复选标记

ios - 有没有办法实现免费试用然后一次性购买