美文网首页
IOS上传被拒的一点总结

IOS上传被拒的一点总结

作者: andy_tu | 来源:发表于2018-06-29 10:11 被阅读0次

    最近上传ios版本被拒2次,导致每次上传后都很紧张。现在分享被拒的原因。

    1.Guideline 2.5.1 - Performance - Software Requirements

    Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.

    Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.

    翻译大概意思就是:您的应用程序使用“Prfs:root =”非公共URL方案,它是私有实体。在App Store中不允许使用非公开API,因为如果这些API改变,它会导致用户体验不佳。

    继续使用或隐瞒非公开API在未来提交此应用程序可能会导致您的苹果开发者帐户的终止,以及删除所有相关的应用程序从应用商店。

    解决方法:跳到设置页面的规避方法

     //将上面的跳转字符串转成字符,在进行拼接就好了

            unsigned char root[ROOT_LEN] = {0x41+1,0x70+1,0x70+1,0x2d+1,0x50+1,0x72+1,0x65+1,0x66+1,0x73+1,0x3a+1,0x72,0x6f,0x6f,0x74,0x3d,0x4c,0x4f,0x43,0x41,0x54,0x49,0x4f,0x4e,0x5f,0x53,0x45,0x52,0x56,0x49,0x43,0x45,0x53};

            unsignedcharszRoot[ROOT_LEN];

            for(inti =0; i

            {

                if(i <10)
                {

                    szRoot[i] = root[i]-1;

                }else

                {

                    szRoot[i] = root[i];

                }

            }

            NSData*encryptString = [[NSDataalloc]initWithBytes:szRootlength:ROOT_LEN];

            NSString *string = [[NSString alloc] initWithData:encryptString encoding:NSUTF8StringEncoding];

            [[UIApplication sharedApplication] openURL:[NSURL URLWithString:string] options:@{} completionHandler:nil];

    2.使用系统权限,给用户提示不清楚

    解决方法:

    提示要写清楚干什么,让用户明白。

    分享就到这里,希望大家一起进步。

    相关文章

      网友评论

          本文标题:IOS上传被拒的一点总结

          本文链接:https://www.haomeiwen.com/subject/ahpoyftx.html