Arturo Marruffo Vegas
Arturo Marruffo Vegas

Reputation: 747

Phonegap: Error when installing BarcodeScanner for iOS

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

I get this error:

Starting installation of "com.phonegap.plugins.barcodescanner" for ios
Cannot read property 'currentVersion' of null

How can I install this plugin?

Upvotes: 3

Views: 1423

Answers (1)

Amnon
Amnon

Reputation: 2888

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

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

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

Upvotes: 4

Related Questions