首页 > 解决方案 > 使用 Cordova 的 Ionic 应用程序在 iOS 模拟器中工作但不在真实设备上

问题描述

我有一个 Angular 风格的 Ionic 应用程序,它正在正确构建、启动和登录Ionic Native: deviceready event fired after 724 msiOS 模拟器,但在启动到实际设备时却没有。

对于实际设备,日志显示:

2020-03-24 19:29:27.273814+0200 MyApp[945:187467] ERROR: Plugin 'IonicCordovaCommon' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2020-03-24 19:29:27.273984+0200 MyApp[945:187467] FAILED pluginJSON = ["IonicCordovaCommon90845249","IonicCordovaCommon","getPreferences",[]]

到目前为止,日志是相同的。

我已尝试删除所有插件 ( cordova plugin rm cordova-plugin-name --force) 并再次添加它们。

IonicCordovaCommon而且我在我的代码库或 config.xml 中找不到任何引用,因为错误提示(已编辑)

标签: ioscordovaionic-framework

解决方案


推荐阅读