热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

AppStore1.0.24版本被拒原因分析

苹果的规定:2016年6月1日提交到AppStore必须支持IPv6-only网络。官方文档:https:developer.apple.comlibrarymacdocumentati

苹果的规定:2016年6月1日提交到App Store必须支持IPv6-only网络。

 官方文档:https://developer.apple.com/library/mac/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW1



解决方法:

升级AFNetworking2.X到最新版本 AFNetworking3.0

1、将  AFHTTPRequestOperationManager 替换为:  AFHTTPSessionManager

2、将  AFHTTPRequestOperation  替换为:NSURLSessionTask

3、如果通过IP访问,或者允许https证书之外的域名访问,需要设置 validatesDomainName 为false。


测试方法:

用连接网线的Mac在共享中发送热点,长按option键创建ipv6 的 wifi 。

其他据说可行的方法:一、回邮件AppStore审核申诉;二、域名改成IP;







#import


typedef void (^requestBlock)(id message);

@interface HTTPRequestTool : NSObject


/**

 *  封装AFNetworking工具方法

 */

+(void)sendGetAFRequest:(NSString *)url withParameters:(NSDictionary *)parDic withSuccess:(requestBlock)successMessage andWithFail:(requestBlock)failMessage;


+(void)sendPostAFRequest:(NSString *)url withParameters:(NSDictionary *)parDic withSuccess:(requestBlock)successMessage andWithFail:(requestBlock)failMessage;


@end




#import "HTTPRequestTool.h"


@implementation HTTPRequestTool


+(void)sendGetAFRequest:(NSString *)url withParameters:(NSDictionary *)parDic withSuccess:(requestBlock)successMessage andWithFail:(requestBlock)failMessage

{

    AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManagermanager];

    //设置AF框架响应的返回数据为2进制

    manager.requestSerializer = [AFJSONRequestSerializerserializer];

    manager.responseSerializer = [AFHTTPResponseSerializerserializer];

    [manager GET:urlparameters:parDic success:^(AFHTTPRequestOperation *operation,id responseObject)

     {

         //调用成功的block回调

         if (successMessage)

         {

             successMessage(responseObject);

         }

     } failure:^(AFHTTPRequestOperation *operation,NSError *error) {

         //调用失败的block回调

         if (failMessage)

         {

             failMessage(error);

         }

     }];

}


+ (void)sendPostAFRequest:(NSString *)url withParameters:(NSDictionary *)parDic withSuccess:(requestBlock)successMessage andWithFail:(requestBlock)failMessage {

    AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManagermanager];

    //设置AF框架响应的返回数据为2进制

    manager.requestSerializer = [AFJSONRequestSerializerserializer];

    manager.responseSerializer = [AFHTTPResponseSerializerserializer];

    [manager POST:urlparameters:parDic success:^(AFHTTPRequestOperation *operation,id responseObject) {

        if (successMessage) {

            successMessage(responseObject);

        }

    } failure:^(AFHTTPRequestOperation *operation,NSError *error) {

        if (failMessage) {

            failMessage(error);

        }

    }];

}


@end














//////////////////////////////////////////////////////////////////////        附上AppStore审核回复的邮件        //////////////////////////////////////////////////////////////////////////




2. - 1 PERFORMANCE: APP COMPLETENESSPerformance - 2.1

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

We were unable to log in. The app stayed on the same page after loading. We've attached screenshot(s) for your reference.
Next Steps
Please run your app on a device while connected to an IPv6 network (all apps must support IPv6) to identify the issue(s), 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(s). For updates, install the new version as an update to the previous version, then follow the steps to reproduce the issue(s).
Resources
For information about supporting IPv6 Networks, please refer to Supporting IPv6 DNS64/NAT64 Networks and About Networking
If you have difficulty reproducing a reported issue, please try testing the workflow described in Technical Q&A QA1764: How to reproduce bugs reported against App Store submissions.
If you have code-level questions after utilizing the above resources, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:- complete details of your rejection issue(s)- screenshots- steps to reproduce the issue(s)- symbolicated crash logs - if your issue results in a crash log


推荐阅读
author-avatar
铁狼爷们儿
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有