ios - 使用 Cordova 的 Ionic 应用程序在 iOS 模拟器中工作但不在真实设备上
问题描述
我有一个 Angular 风格的 Ionic 应用程序,它正在正确构建、启动和登录Ionic Native: deviceready event fired after 724 ms
iOS 模拟器,但在启动到实际设备时却没有。
对于实际设备,日志显示:
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 中找不到任何引用,因为错误提示(已编辑)
解决方案
推荐阅读
- java - 从 jdk 8 迁移到 jdk 11 cxf 生成来源未知的导入
- r - 组合字符向量并使用该向量的负数将行或列置零
- java - 油漆和油漆组件的 NullPointerException 问题
- django - 如何检查通道是否为空
- android - SafetyNet 证明 API 的间歇性网络问题
- ios - Admob GDPR 同意对话框每次返回欧盟时都会弹出?
- laravel - Laravel Backpack 如何反弹到精确匹配而不是在表格中只显示 1 个结果
- java - 如何从文件系统添加 Gradle 插件?
- matlab - 如何在 Matlab 中最好地设置日期轴
- google-docs - Google 文档查看器使用条款