0

加载 XCode 时出现此错误。

有什么解决办法吗?

FAILED pluginJSON = ["AuthProxy1342781311","AuthProxy","initWebStrategies",[]] 2020-01-24 12:59:00.432213+0530 myJobCard[23188:330651] 错误:找不到插件'StatusBar',或者不是CDVP插件。检查 config.xml 中的插件映射。2020-01-24 12:59:00.432347+0530 我的工作卡[23188:330651]

FAILED pluginJSON = ["StatusBar1342781312","StatusBar","_ready",[]] 2020-01-24 12:59:00.432539+0530 myJobCard[23188:330651] 错误:找不到插件“控制台”,或者不是CDVP插件。检查 config.xml 中的插件映射。2020-01-24 12:59:00.432642+0530 myJobCard[23188:330651]

FAILED pluginJSON = ["INVALID","Console","logLevel",["LOG","Set javascript initial log level: ERROR"]] 2020-01-24 12:59:00.432821+0530 myJobCard[23188:330651]错误:未找到插件“控制台”,或者不是 CDVP 插件。检查 config.xml 中的插件映射。2020-01-24 12:59:00.432906+0530 我的工作卡[23188:330651]

FAILED pluginJSON = ["INVALID","Console","logLevel",["LOG","Ionic Native:事件在 444 毫秒后触发"]] 2020-01-24 12:59:00.433063+0530 myJobCard[23188:330651 ] 错误:未找到插件“SMPSettingsExchangePlugin”,或者不是 CDVP 插件。检查 config.xml 中的插件映射。我们在 npm 中使用以下版本: 版本图像

我们在项目中使用的插件列表:插件版本列表

我们正在尝试以下解决方案:

  1. 在 X-Code 中,转到 Build Phases -> 打开 Compiled Sources 下拉菜单。单击 + 并添加缺少的插件 .m 文件,该文件应该在您的插件目录中(但在编译的源代码中缺少)。所有 ready.M 文件都可用。请按照 x-code 中的图像所有插件 .m 文件

  2. 简而言之:

    1. 删除./plugins/ios.json,
    2. 然后删除./platforms/ios,
    3. 然后运行cordova platform add ios
    4. 然后科尔多瓦建立。删除 ios.json
4

1 回答 1

0

Sorry to say that you aren't providing a lot of information, which makes guessing a lot harder - what app are you trying to build? Is the SMP SDK installed? It does look a little to me that the project config is out of sync with the sources, which may happen if you blindly delete folders in Cordova :)

To be safe when Cordova runs into hiccups, I usually

  1. Remove the offending plugins with cordova plugin remove <id>
  2. Remove the offending platform with cordova platform add <ios>
  3. In case of doubt, get rid of the plugins and platforms folders altogether
  4. Re-add the offending platform via cordova platform add ios
  5. Re-add the offending plugin via cordova plugin add <id>

Also, as a general rule of thumb - do not mess with the platforms folder. As opposed to Ionic sources, the generated output is not meant to be modified, and if there are issues with the output, it is likely that there are issues with your Cordova project settings.

Maybe my CI tutorial gives you another hint or two as well: https://developers.sap.com/tutorials/ci-best-practices-mobile-cordova.html

于 2020-02-03T12:26:36.467 回答