ios应用商店拒绝-您的应用使用"prefs:root ="非公开网址方案 [英] ios app store rejection - Your app uses the "prefs:root=" non-public URL scheme

查看:99
本文介绍了ios应用商店拒绝-您的应用使用"prefs:root ="非公开网址方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的应用程序的新版本上传到iTunes连接.我的应用程序被此注释拒绝

I recently uploaded a new version of my app to itunes connect. My app got rejected with this note

您的应用使用"prefs:root =非公开URL方案

Your app uses the "prefs:root=" non-public URL scheme

我几乎可以肯定,我没有在我的应用程序中使用任何Url方案,而是尝试通过终端在整个项目中使用grep -R查找prefs:root(不区分大小写,以便也能够匹配App-Prefs或其他内容)

I am almost sure that I don't use any Url scheme on my app I have tried finding prefs:root using grep -R in my entire project through terminal (case insensitive to be able to also match App-Prefs or whatever.

我也使用很多cocoapods库,所以...我的问题是... 有没有办法找出哪个图书馆正在使用该权限?

I also use a lot of cocoapods libraries so... my question is ... Is there a way to find out which library is using that permission?

在xcode上搜索结果的屏幕截图

Screenshot of search results on xcode

项目中使用的框架:

  • AmazonFling
  • 其他来自CocoaPods的人(未列出,因为无关紧要:请参阅我的回答)

推荐答案

我遇到了与Apple相同的拒绝情况,并使用以下代码打开应用程序设置,但iOS11上不接受该设置.

I faced the same rejection form Apple and to open app settings i was using the below code and it's not accepted on iOS11.

let url = URL(string : "prefs:root=")
if UIApplication.shared.canOpenURL(url!) {
    UIApplication.shared.openURL(url!)
 }

因此,要打开设置",我使用了以下代码,并批准了该应用程序.

So, to open Settings, I used the below code and App was approved.

guard let settingsUrl = URL(string: UIApplicationOpenSettingsURLString) else {
    return
  }
  if UIApplication.shared.canOpenURL(settingsUrl)  {
    if #available(iOS 10.0, *) {
      UIApplication.shared.open(settingsUrl, completionHandler: { (success) in
      })
    }
    else  {
      UIApplication.shared.openURL(settingsUrl)
    }
  }

这篇关于ios应用商店拒绝-您的应用使用"prefs:root ="非公开网址方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆