ios 应用商店拒绝

编程入门 行业动态 更新时间:2024-10-28 00:16:24
本文介绍了ios 应用商店拒绝 - 您的应用使用“prefs:root=";非公开 URL 方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

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

我的项目中使用的框架:

Frameworks used on my project:

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 updated the code and It worked.

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=";非公开 URL 方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-17 07:20:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/907767.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:商店   ios

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!