简体   繁体   English

iOS构建问题App Store首选项:root =

[英]iOS build issue App Store prefs:root=

I have submitted an iOS build to the App Store and they reject the compilation due to this situation: 我已经向App Store提交了iOS版本,并且由于这种情况他们拒绝编译:

Guideline 2.5.1 - Performance - Software Requirements 准则2.5.1 - 性能 - 软件要求

Your app uses the “prefs:root=” non-public URL scheme, which is a private entity. 您的应用使用“prefs:root =”非公共URL方案,这是一个私有实体。 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. App Store上不允许使用非公共API,因为如果这些API发生变化,可能会导致糟糕的用户体验。

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. 在将来提交此应用程序时继续使用或隐藏非公共API可能会导致Apple Developer帐户被终止,以及从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. 要解决此问题,请修改您的应用以使用公共API提供相关功能,或使用“prefs:root”或“App-Prefs:root”URL方案删除功能。

This is my IONIC INFO: 这是我的IONIC INFO:

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

Honestly, I don't have any idea what they refer to. 老实说,我不知道他们所指的是什么。 Can someone help me whit this please I need to make the release in the App Store. 有人可以帮助我,请我在App Store中发布。

In my case the problem was the use of prefs:root by a cordova plugin. 在我的情况下,问题是使用prefs:root by cordova插件。 After a search of the iOS project I have found that it was the diagnostic plugin. 在搜索iOS项目后,我发现它是诊断插件。

https://github.com/dpa99c/cordova-diagnostic-plugin/issues/262 https://github.com/dpa99c/cordova-diagnostic-plugin/issues/262

After an update of the plugin it fixed itself. 更新插件后,它自行修复。

I also found it might be in the background-geo 我还发现它可能在背景中

https://github.com/mauron85/cordova-plugin-background-geolocation/issues/454 https://github.com/mauron85/cordova-plugin-background-geolocation/issues/454

As a last resort if an update is not available to a broken plugin, deleting the related code from the plugin can solve the problem. 作为最后的手段,如果更新不适用于损坏的插件,则从插件中删除相关代码可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM