首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Gettinf错误:找不到插件‘CDVPlugin’,或者不是Gettinf。在config.xml中检查您的插件映射。XCODE

Gettinf错误:找不到插件‘CDVPlugin’,或者不是Gettinf。在config.xml中检查您的插件映射。XCODE
EN

Stack Overflow用户
提问于 2014-07-10 18:50:57
回答 1查看 4.9K关注 0票数 0

我在我的x代码项目中遇到了插件错误,在这个项目中我使用了phone- am。我还集成了App Purchase..但是当我运行项目时,我得到了如下所示的插件错误。我已经使用此链接github link完成了此操作

代码语言:javascript
运行
复制
2014-07-10 16:18:07.648 Mileage[8340:60b] Unlimited access to network resources
2014-07-10 16:18:07.700 Mileage[8340:60b] CDVPlugin class CDVSplashScreen (pluginName: splashscreen) does not exist.
2014-07-10 16:18:07.701 Mileage[8340:60b] [CDVTimer][splashscreen] 0.514984ms
2014-07-10 16:18:07.701 Mileage[8340:60b] [CDVTimer][TotalPluginStartup] 0.954986ms
2014-07-10 16:18:07.824 Mileage[8340:60b] Resetting plugins due to page load.
2014-07-10 16:18:08.641 Mileage[8340:60b] Finished load of: file:///Users/jaykishanvansadawala/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/3890311E-0D18-42FA-8A28-58BB8EA6EFEC/Mileage.app/www/index.html#settings-page
2014-07-10 16:18:08.687 Mileage[8340:60b] CDVPlugin class CDVDevice (pluginName: Device) does not exist.
2014-07-10 16:18:08.687 Mileage[8340:60b] ERROR: Plugin 'Device' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-07-10 16:18:08.687 Mileage[8340:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "Device1682550080",
  "Device",
  "getDeviceInfo",
  [

  ]
]
2014-07-10 16:18:08.688 Mileage[8340:60b] CDVPlugin class CDVConnection (pluginName: NetworkStatus) does not exist.
2014-07-10 16:18:08.688 Mileage[8340:60b] ERROR: Plugin 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-07-10 16:18:08.688 Mileage[8340:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "NetworkStatus1682550081",
  "NetworkStatus",
  "getConnectionInfo",
  [

  ]
]
2014-07-10 16:18:17.506 Mileage[8340:60b] CDVPlugin class InAppPurchase (pluginName: InAppPurchase) does not exist.
2014-07-10 16:18:17.506 Mileage[8340:60b] ERROR: Plugin 'InAppPurchase' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-07-10 16:18:17.506 Mileage[8340:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "InAppPurchase1682550082",
  "InAppPurchase",
  "debug",
  [

  ]
]
2014-07-10 16:18:17.507 Mileage[8340:60b] CDVPlugin class InAppPurchase (pluginName: InAppPurchase) does not exist.
2014-07-10 16:18:17.507 Mileage[8340:60b] ERROR: Plugin 'InAppPurchase' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-07-10 16:18:17.507 Mileage[8340:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "InAppPurchase1682550083",
  "InAppPurchase",
  "noAutoFinish",
  [

  ]
]
2014-07-10 16:18:17.508 Mileage[8340:60b] CDVPlugin class InAppPurchase (pluginName: InAppPurchase) does not exist.
2014-07-10 16:18:17.508 Mileage[8340:60b] ERROR: Plugin 'InAppPurchase' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-07-10 16:18:17.508 Mileage[8340:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "InAppPurchase1682550084",
  "InAppPurchase",
  "setup",
  [

  ]
]
2014-07-10 16:18:17.508 Mileage[8340:60b] CDVPlugin class InAppPurchase (pluginName: InAppPurchase) does not exist.
2014-07-10 16:18:17.509 Mileage[8340:60b] ERROR: Plugin 'InAppPurchase' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-07-10 16:18:17.509 Mileage[8340:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "InAppPurchase1682550085",
  "InAppPurchase",
  "load",
  [
    [
      "com.innospace.autotax"
    ]
  ]
]
EN

Stack Overflow用户

发布于 2014-07-10 20:25:43

看起来您已经手动添加了插件,并且您忘记添加一些配置cordova_plugin.js/config.xml。

请找到下面的代码。

代码语言:javascript
运行
复制
 <feature name="NetworkStatus">
         <param name="ios-package" value="CDVConnection" />
 </feature>

网络状态将是功能名称,值将是您的类名。

另请检查cordova_plugin.js

代码语言:javascript
运行
复制
cordova.define('cordova/plugin_list', function(require, exports, module) {
    module.exports = [{
        "file": "plugins/org.apache.cordova.dialogs/www/notification.js",
        "id": "org.apache.cordova.dialogs.notification",
        "merges": ["navigator.notification"]
    }, {
        "file": "plugins/org.apache.cordova.network-information/www/network.js",
        "id": "org.apache.cordova.network-information.network",
        "clobbers": ["navigator.connection", "navigator.network.connection"]
    }];
    module.exports.metadata = // TOP OF METADATA 
    {
        "org.apache.cordova.device": "0.2.8",
        "org.apache.cordova.network-information": "0.2.7"
    }
});

这些是一些权限类型。

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24674662

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档