iOS审核被拒问题梳理

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.
Specifically, “app-prefs:root=w”.
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.
To resolve this issue, please revise your app to provide the associated functionality using public APIs or remove the functionality using the “prefs:root” or “App-Prefs:root” URL scheme.

准则2.5.1 -性能-软件要求
您的应用程序使用“prefs:root=”非公共URL方案,这是一个私有实体。应用程序商店不允许使用非公共api,因为如果这些api发生更改,可能会导致糟糕的用户体验。
具体来说,“app-prefs:根= w”。
在未来提交的应用程序中继续使用或隐藏非公共api,可能会导致您的苹果开发人员帐户终止,并从应用程序商店中删除所有相关应用程序。
为了解决这个问题,请修改您的应用程序,使用公共api提供相关功能,或者使用“prefs:root”或“app - prefs:root”URL方案删除功能。

解决办法:

1.代码中不能有“prefs:root”;
2.info.plist中URL scheme值为prefs也是不可以的;
3.网上说使用16进制的转码,是不行的;
最终我把代码替换成下面的代码,成功审核通过:

NSURL*url =[NSURL URLWithString:UIApplicationOpenSettingsURLString];
    if([[UIApplication sharedApplication] canOpenURL:url]) {
        //此处可以做一下版本适配,至于为何要做版本适配,大家应该很清楚
        [[UIApplication sharedApplication] openURL:url];
    }
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值