AppStore 1.0.24 版本被拒原因分析



解决方法:

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

1、将  AFHTTPRequestOperationManager 替换为:  AFHTTPSessionManager

2、将  AFHTTPRequestOperation  替换为:NSURLSessionTask

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


测试方法:


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


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








#import <Foundation/Foundation.h>


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 = [AFHTTPRequestOperationManager manager];

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

    manager.requestSerializer = [AFJSONRequestSerializer serializer];

    manager.responseSerializer = [AFHTTPResponseSerializer serializer];

    [manager GET:url parameters: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 = [AFHTTPRequestOperationManager manager];

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

    manager.requestSerializer = [AFJSONRequestSerializer serializer];

    manager.responseSerializer = [AFHTTPResponseSerializer serializer];

    [manager POST:url parameters: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 COMPLETENESS
Performance - 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

猜你喜欢

转载自blog.csdn.net/qq_27247497/article/details/52052241