我已经向 App Store 提交了一个 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.
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.
Next Steps
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.
这是我的 ionic 信息:
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.9
Cordova Platforms : android 6.3.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
ios-sim : 6.1.2
Node : v8.11.2
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
Environment Variables:
ANDROID_HOME : /Users/ebosques/Library/Android/sdk
Misc:
backend : pro
老实说,我不知道他们指的是什么。 有人可以帮我解决这个问题吗?我需要在 App Store 中发布。
最佳答案
在我的例子中,问题是 cordova 插件使用 prefs:root。 搜索 iOS 项目后,我发现它是诊断插件。
https://github.com/dpa99c/cordova-diagnostic-plugin/issues/262
更新插件后,它会自行修复。
我还发现它可能在background-geo中
https://github.com/mauron85/cordova-plugin-background-geolocation/issues/454
作为最后的手段,如果一个损坏的插件没有可用的更新,删除相关的 来自插件的代码可以解决这个问题。
关于iOS 构建问题 App Store 首选项 :root=,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50944775/