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

标签 ios ionic-framework ionic2 ionic3 app-store

我已经向 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/

相关文章:

objective-c - 将 JSON 结果解析为 NSString 或 RestKit 中类似的 "primitive"数据类型

ios - 创建一个从 xml 文件中提取所有数据的 ScrollView

android - 强制更新混合移动应用程序

javascript - Ionic 2 范围 slider 导致 "Expression value changed after it was checked"错误

unit-testing - Angular 2 (Mock Ionic2) -- 没有应用程序的提供者

iphone - Plist Array 到 NSArray 没有对象

iphone - 如何使 UITableView 上的 SwipeGestureRecognizer 响应更快?

ios - 来源 http ://localhost:8100 is not allowed by Access-Control-Allow-Origin in ionic

javascript - Angular 谷歌地图在组件加载时未定义经纬度

android - Ionic build android --prod cleancss broken @import 错误