前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >2.5.1大礼包

2.5.1大礼包

作者头像
全栈程序员站长
发布2022-09-13 10:45:19
2560
发布2022-09-13 10:45:19
举报
文章被收录于专栏:全栈程序员必看

大家好,又见面了,我是你们的朋友全栈君。

查找: 全局搜索 prefs:root= 或者 openURL: 不要有 “prefs:root= x x x x” 这个可能出在自己项目中,特别是接手老项目,另一种可能是第三方sdk 里出现的 特别是调用相册相机 调用wifi这类的第三方框架或SDK。如果第三方出现 重新下载最新的包或者换第三方,联系第三方sdk开发者修改。

修改一般只弹框提示不做跳转或者用苹果提供的方法。不要出现:@”prefs:root= *** ” 这样的代码

//查找项目中的 prefs:root=

最好使用命令行来查找工程中的私有api“App-Prefs”

1 cd 项目路径

2 终端输入 grep -lr “prefs:root=” *

//查询第三方中的 prefs:root=

在终端下依次执行如下代码进行搜索私有API.

代码语言:javascript
复制
cd 工程目录
grep -r prefs .(注意此处有个点.)
grep -r App-Prefs .
grep -r GraphicsServices .
.5.1大礼包"
.5.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 notpermitted on the App Store because it can lead to a poor user experience should these APls change. Continuing to use or conceal non-public APls in future submissions of this app may result in the termination of yourApple Developer account, as well as removal of all associated apps from the App Store. Next Steps To resolve this issue, please revise your app to provide the associated functionality using public APls or remove thefunctionality using the “prefs:root” or “App-Prefs:root” URL scheme. If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.

将类似这段私有api [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=Wallpaper Wi-Fi”]]; 换成下面的 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

各种命令查找还是会被拒,那就有可能出在使用的一些第三方SDK里面了!这个查了很多博客和论坛。都没有很好的解决办法,半年前的一份代码,只是加点东西上传被拒。

5.1那个就很简单:在info.plist 里 说明调用相机相册的用途:例如: 需要拍照上传用户头像,是否允许打开相机?

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/160438.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档