Starting installation of "com.wikitude.phonegap.WikitudePlugin" for ios
Cannot read property 'currentVersion' of null
S
Stefano Santo Sabato
said
over 9 years ago
Hi,
I have the same problem,
is there someone that can help us ??
Thank you.
Stefano.
n
newbee @AR
said
about 9 years ago
hi ,
i am exactly having the same problem . May i know how you solved this problem ? . thanks
regard's
rajesh
A
Andreas Schacherbauer
said
about 9 years ago
Hi Rajesh, Here is my little cheat sheet on how to create a new PhoneGap application and adding the Wikitude Plugin afterwards. Maybe it's helpful for you.
Please keep in mind that the Wikitude SDK is quite large, so the Wikitude Plugin install can take severall minutes, depending on your internet connection. I suggest that you have a look at some network monitor to see if there is still some network activity going on.
Best regards
Andreas
n
newbee @AR
said
about 9 years ago
Thank you for reply, But i still having same problem.
i have done following your steps.
pwd == "FolderName"
i don't know what this above command do . i didn't find any documentation either . Can you please let me know where should i type this command .
i assumed and used this pwd=="folderName" in terminal console . then i tried to install wikitude plugin using your "plugman install ...... " command . i received a message
So please me to fix this . What is this error acutally mean ? .
waiting for your suggestion
regard's
rajesh
A
Andreas Schacherbauer
said
about 9 years ago
pwd == "FolderName" is not a command, it means that after you have changed into the project directory, the output of the 'pwd' command should be the path where your project is located.
Which PhoneGap version are you using? (type 'phonegap version' in terminal)
Best regards
Andreas
n
newbee @AR
said
about 9 years ago
hi thanks for reply,
i used --debug in pugman command and paste the results below
Cordova project /Users/ants/folder/platform/ios/cordova/version not detected (lacks a /Users/ants/folder/platform/ios/cordova/version script), continuing.
TypeError: Cannot read property 'currentVersion' of null
at checkEngines (/usr/local/lib/node_modules/plugman/src/install.js:73:35)
at _fulfilled (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/plugman/node_modules/q/q.js:526:49
at flush (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
found the phonegap version in terminal console
phonegap version is "3.4.0-0.19.8"
regard's
rajesh
A
Andreas Schacherbauer
said
about 9 years ago
Seems that the plugin is already installed. I would suggest that you either uninstall the wikitude plugin or create a new project and add our plugin from scratch. Did you perform a 'phonegap build ios' before your added the plugin?
Best regards
Andreas
n
newbee @AR
said
about 9 years ago
Thanks for reply,
Sucessfully installed wikitude plugin after created the new project using phonegap create command .
This is how i fixed the issue.
step 1. created new project using "phonegap create folder com.xxxx.xxxx projectname"
step 2. added world folder in www folder/directory
step 3. "phonegap build ios"
step 4. used plugman command .command and consoloe output is below
Ensure that your SDK key matches your bundle identifier (e.g. "com.yourapp.id" ). This will remove the watermark and intro animation. For more information the online store at http://www.wikitude.com/store
If you want to contribute to the open source project, please visit us at github, http://github.com/Wikitude
210:new ants$
regard's
rajesh
A
Andreas Schacherbauer
said
about 9 years ago
Congrats! Have fun using the Wikitude Plugin with PhoneGap!
R
Richard Spring
said
over 9 years ago
This is because the value you specified for the --project flag is not valid (~/Stash/). If you created your project via the command line interface, and then ran "phonegap build ios" for instance, then the value for --project should be something like "/Users/macuser/myapp/platforms/ios/". Of course the "/Users/macuser/myapp/" part will be different for you, but this part is just the location of your app. If you didn't install your project via the CLI, then I'm not sure exactly what you need to specify for the --project flag, of if you would be able to use plugman at all.
Eric Scheel