gpt4 book ai didi

ios - 将 Phonegap 插件添加到 Xcode - 错误 : Plugin 'PayPalPlugin' not found, 或不是 CDVPlugin

转载 作者:太空宇宙 更新时间:2023-11-03 16:33:38 25 4
gpt4 key购买 nike

我正在尝试将新的 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)?

有人可以提供任何建议吗?

干杯

enter image description here

最佳答案

在对着电脑苦思冥想之后,我找到了答案,方法是通过命令行添加一个随机的 Phonegap 插件,然后查看它是如何在我的 config.xml 文件中输入插件的,试用了一段时间,最终成功了!

是这样的——

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

关于ios - 将 Phonegap 插件添加到 Xcode - 错误 : Plugin 'PayPalPlugin' not found, 或不是 CDVPlugin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18784892/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com