gpt4 book ai didi

ios - 由于 '_alwaysRunsAtForegroundPriority',Ionic 应用程序在 iOS 12.2 上崩溃

转载 作者:可可西里 更新时间:2023-11-01 03:29:49 26 4
gpt4 key购买 nike

在 iOS 12.2 上,我的应用程序在启动后立即终止,并在 xcode 中显示此消息:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _alwaysRunsAtForegroundPriority.'

任何人都可以为我指出正确的方向吗?我看到之前有一些关于此的警告:

How to resolve app validation "The app references non-public selectors in Payload/MyApp.app/MyApp: _setAlwaysRunsAtForegroundPriority:"?

该帖子的答案是它是来自 webview 的安全警告,可以忽略。但是当它让我的应用程序崩溃时,它真的不能再被忽略了:)

在此先感谢您的帮助。

拉斯

2019 年 2 月 2 日更新:看起来是 cordova-plugin-background-mode 导致了错误。但我必须承认我不知道如何解决这个问题。当我从我的项目中删除该插件时,它会起作用。但是我需要那个插件,或者至少需要后台模式功能,所以我需要以某种方式解决这个问题。

2019 年 2 月 5 日更新:@coderroggie:我还有 2.3.2 版的 cordova-plugin-ionic-webview 插件。奇怪的是,它仅在删除 cordova-plugin-background-mode(版本 0.7.2)时才对我有用

如果可以为您提供任何有用的信息,我会发布我的 ionic 信息。

Ionic:

ionic (Ionic CLI) : 4.9.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.2.1

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : ios 4.5.5 Cordova Plugins : cordova-plugin-ionic 5.2.9, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 22 other plugins)

System:

ios-deploy : 1.9.2 NodeJS : v8.11.1 (/usr/local/bin/node)
npm : 6.4.1 OS : macOS Mojave Xcode : Xcode 10.1 Build version 10B61

2 月 2 日(再次)更新

我的插件:

cordova-android-firebase-gradle-release 1.0.2 "cordova-android-firebase-gradle-release"
cordova-android-play-services-gradle-release 1.4.3 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 1.4.4 "cordova-android-support-gradle-release"
cordova-plugin-app-version 0.1.9 “AppVersion”
cordova-plugin-background-mode 0.7.2 "BackgroundMode"
cordova-plugin-badge 0.8.7“角标(Badge)”
cordova-plugin-camera 4.0.3 “相机”
cordova-plugin-console 1.1.0 “控制台”
cordova-plugin-customurlscheme 4.3.0 “自定义 URL 方案”
cordova-plugin-device 2.0.2“设备”
cordova-plugin-file 6.0.1 "file"
cordova-plugin-file-transfer 1.7.1 “文件传输”
cordova-plugin-geolocation 4.0.1 “地理定位”
cordova-plugin-ionic 5.2.9 “cordova-plugin-ionic”
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.3.2 "cordova-plugin-ionic-webview"
cordova-plugin-local-notification 0.9.0-beta.2 “LocalNotification”
cordova-plugin-mauron85-background-geolocation 3.0.0-alpha.49“CDVBackgroundGeolocation”
cordova-plugin-network-information 2.0.1 “网络信息”
cordova-plugin-safariviewcontroller 1.5.4 “SafariViewController”
cordova-plugin-splashscreen 5.0.2“启动画面”
cordova-plugin-vibration 3.1.0 “振动”
cordova-plugin-whitelist 1.3.3 “白名单”
cordova-support-google-services 1.1.0 "cordova-support-google-services"
cordova.plugins.diagnostic 4.0.7 “诊断”
ionic-plugin-keyboard 2.2.1 “键盘”
phonegap-plugin-push 2.1.3 “PushPlugin”

最佳答案

在插件中,底部有一个“setValue”,可以使应用程序崩溃。得到了 12.2 的版本。尝试

ionic cordova plugin add https://github.com/iowayankee/cordova-plugin-background-mode.git

包.json

    "cordova-plugin-background-mode": "git+https://github.com/iowayankee/cordova-plugin-background-mode.git",

配置文件

    <plugin name="cordova-plugin-background-mode" spec="git+https://github.com/iowayankee/cordova-plugin-background-mode.git" />

希望至少能帮助某人进行构建

关于ios - 由于 '_alwaysRunsAtForegroundPriority',Ionic 应用程序在 iOS 12.2 上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54474910/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com