Phonegap:安装BarcodeScanner iOS时出错 [英] Phonegap: Error when installing BarcodeScanner for iOS

查看:151
本文介绍了Phonegap:安装BarcodeScanner iOS时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试为iOS安装BarcodeScanner插件时

When I try to install the BarcodeScanner plugin for iOS

plugman install --platform ios --project     /Users/amarruffo/Documents/Projects/phonegap/barcodeApp/platforms/ios --plugin     com.phonegap.plugins.barcodescanner

我得到这个错误:
开始安装com.phonegap.plugins.barcodescannerfor ios
无法读取null的属性'currentVersion'

I get this error: Starting installation of "com.phonegap.plugins.barcodescanner" for ios Cannot read property 'currentVersion' of null

推荐答案

如何安装此插件?

尝试使用--debug开关,例如:

Try using the --debug switch, i.e:

plugman install --debug --platform ios --project     /Users/amarruffo/Documents/Projects/phonegap/barcodeApp/platforms/ios --plugin     com.phonegap.plugins.barcodescanner


$ b b

在我的case,我收到相同的错误,当我注意到添加--debug开关,我指向错误的路径在--project中,因此plugman没有访问的版本文件在平台/ ios / cordova目录

In my case, I received the same error when I noticed after adding the --debug switch that I pointed to the wrong path in the --project and therefore plugman didn't have access to the version file in the platforms/ios/cordova directory

此外,我使用了--plugin = https://github.com/wildabeast/BarcodeScanner ,因此这也是相关的。

Also, I used --plugin=https://github.com/wildabeast/BarcodeScanner so perhaps this is also relevant.

这篇关于Phonegap:安装BarcodeScanner iOS时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆