我正在尝试将新的 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)?
有人可以提供任何建议吗?
干杯
在对着电脑苦思冥想之后,我找到了答案,方法是通过命令行添加一个随机的 Phonegap 插件,然后查看它是如何在我的 config.xml 文件中输入插件的,试用了一段时间,最终成功了!
是这样的——
<feature name="PayPalPlugin">
<param name="ios-package" value="PayPalPlugin" />
</feature>
我是一名优秀的程序员,十分优秀!