问题描述
限时送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:关键词]
发布评论