【问题标题】:Add Phonegap Plugin to Xcode - ERROR: Plugin 'PayPalPlugin' not found, or is not a CDVPlugin将 Phonegap 插件添加到 Xcode - 错误:找不到插件“PayPalPlugin”,或者不是 CDVPlugin
【发布时间】:2013-09-18 01:22:37
【问题描述】:

我正在尝试将新的 Paypal 插件 (https://github.com/SnareChops/PayPalPlugin) 实施到 Xcode 中以用于 HTML5 Phonegap 项目 - 我已按照所有说明进行操作,经过一些库调整后,我现在有了一个干净的构建 - 但是当我触发我收到以下错误的插件 -

ERROR: Plugin 'PayPalPlugin' not found, or is not a CDVPlugin. 
Check your plugin mapping in config.xml.
2013-09-13 12:02:55.092 testing[2992:907] -[CDVCommandQueue executePending] 
[Line 116] FAILED pluginJSON = [
"PayPalPlugin258195476",
"PayPalPlugin",
"preconnect",
[
"Sandbox"
]
]

然后在下面重复此操作,但错误略有不同 -

2013-09-13 12:02:56.654 testing[2992:907] ERROR: Plugin 'PayPalPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.

我已将 paypalplugin.m 和 .h 文件添加到插件文件夹中,下面是我的 config.xml 文件的副本 - 我不确定我能做些什么来解决这个问题 - 我需要添加通过命令行插件(此处显示 - http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html)?

谁能给点建议?

干杯

【问题讨论】:

标签: ios xcode paypal cordova phonegap-plugins


【解决方案1】:

在对计算机感到非常沮丧和咒骂之后,我通过命令行添加了一个随机的 Phonegap 插件并查看它是如何在我的 config.xml 文件中输入插件的方式找到了答案,玩了一段时间,最终它工作!

如下——

<feature name="PayPalPlugin">
    <param name="ios-package" value="PayPalPlugin" />
</feature>

【讨论】:

  • 您使用的是哪个版本的 PhoneGap?
  • 嗨 Snarechops - 最新版本 - 2.9
猜你喜欢
  • 1970-01-01
  • 2014-05-09
  • 1970-01-01
  • 2013-10-13
  • 2014-02-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-09-04
相关资源
最近更新 更多