cordova-plugin-barcode-scanner2无法构建

时间:2015-10-30 04:38:57

标签: javascript ios cordova phonegap-plugins phonegap-build

我正在尝试构建PhoneGap构建应用程序。在我的config.xml我有:

<gap:plugin name="cordova-plugin-barcode-scanner2" source="npm" />

我在我的应用中将它用于条形码扫描仪。当我构建它时,Android版本构建得很好并且有效。当我构建iPhone版本时,我收到此错误:

Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-plugin-barcode-scanner2" via npm Installing "cordova-plugin-barcodescanner" for ios Error during processing of action! Attempting to revert... Failed to install 'cordova-plugin-barcodescanner':Error: Uh oh! "/private/tmp/gimlet/320/1536482/project/cordova/plugins/cordova-plugin-barcodescanner/src/ios/CDVBarcodeScanner.mm" not found! at Object.module.exports.common.copyFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:38:40) at Object.module.exports.common.copyNewFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:69:16) at installHelper (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:54:16) at Object.module.exports.source-file.install (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:139:13) at installWrapper (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/platforms.js:77:32) at Object.ActionStack.process (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/util/action-stack.js:68:25) at handleInstall (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:576:20) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:368:24 at _fulfilled (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:816:30) Uh oh! "/private/tmp/gimlet/320/1536482/project/cordova/plugins/cordova-plugin-barcodescanner/src/ios/CDVBarcodeScanner.mm" not found! 

在PhoneGap上,solarley通过此解决方案询问了他们引用此错误的问题页面:

  

导致此错误的最可能原因是您有错误   在您的应用包中包含插件javascript文件,例如   barcodescanner.js,GAPlugin.js,cdv-plugin-fb-connect.js或任何其他   插件文件,例如childbrowser assets目录。

     

以前我们使用pluginstall来安装插件,这很简单   覆盖应用中的文件。但是我们最近迁移到了plugman,   它不会覆盖这些文件而是会失败。所以要确保   你删除它们了!

但我搜索了整个项目,找不到barcodescanner.js

有什么想法吗?

0 个答案:

没有答案