Start a new topic

Error adding Wikitude to phone gap...

Error adding Wikitude to phone gap...


We are getting the following error when trying to add Wikitude to our phonegap app. Does anyone have any ideas for how to resolve? 

 

 

Thanks,

Eric

 

-------


~ > plugman install --platform ios --project ~/Stash/ --plugin https://github.com/Wikitude/wikitude-phonegap.git

Fetching plugin from "https://github.com/Wikitude/wikitude-phonegap.git"...

Starting installation of "com.wikitude.phonegap.WikitudePlugin" for ios

Cannot read property 'currentVersion' of null

Hi,

I have the same problem, 

is there someone that can help us ??

Thank you.

Stefano.

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.

hi , 

     i am exactly having the same problem . May i know how you solved this problem ? . thanks 

 

regard's

rajesh

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.

## Create a New Project

phonegap create *FolderName* *bundleId* *AppName*

 

### Build the Project

cd *FolderName*

 

phonegap build ios

 

### Add iOS Plugin

pwd == *FolderName*

 

plugman install --platform ios --project platforms/ios --plugin https://github.com/Wikitude/wikitude-phonegap.git

 

 

plugman uninstall --platform ios --project platforms/ios --plugin com.wikitude.phonegap.WikitudePlugin

 

 

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

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

 

Fetching plugin "https://github.com/Wikitude/wikitude-phonegap.git" via git clone


Installing com.wikitude.phonegap.WikitudePlugin (ios)

Cannot read property 'currentVersion' of null

 

So please me to fix this . What is this error acutally mean ? . 

 

waiting for your suggestion 

 

 

regard's

rajesh

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

hi thanks for reply,

     i used --debug in pugman command and paste the results below

 

210:folder ants$ plugman install --debug --platform ios --project /Users/ants/folder/platform/ios --plugin https://github.com/Wikitude/wikitude-phonegap.git                             

Fetching plugin "https://github.com/Wikitude/wikitude-phonegap.git" via git clone

Fetching plugin via git-clone command: git clone "https://github.com/Wikitude/wikitude-phonegap.git" "/var/folders/rw/jd9w5t217gs60rhc_mmq7n680000gq/T/plugman-tmp1395992042307"

Plugin "https://github.com/Wikitude/wikitude-phonegap.git" fetched.

Copying fetched plugin over "/Users/ants/folder/platform/ios/cordova/plugins/com.wikitude.phonegap.WikitudePlugin"...

cp: dest file already exists: /Users/ants/folder/platform/ios/cordova/plugins/com.wikitude.phonegap.WikitudePlugin/README.md

 

cp: dest file already exists: /Users/ants/folder/platform/ios/cordova/plugins/com.wikitude.phonegap.WikitudePlugin/README.md

cp: dest file already exists: /Users/ants/folder/platform/ios/cordova/plugins/com.wikitude.phonegap.WikitudePlugin/plugin.xml

 

skipping existing file: WikitudePlugin.java

skipping existing file: wikitudesdk_3_2_1.jar

skipping existing file: WTARViewController.h

skipping existing file: WTARViewController.m

skipping existing file: WTArchitectView.h

skipping existing file: WTWikitudePlugin.h

skipping existing file: WTWikitudePlugin.m

skipping existing file: libWikitudeSDK.a

skipping existing file: WikitudePlugin.js

Plugin "com.wikitude.phonegap.WikitudePlugin" fetched.

Installing com.wikitude.phonegap.WikitudePlugin (ios)

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

 

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

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

 

210:new ants$ plugman install --debug --platform ios --project /Users/ants/new/platforms/ios --plugin https://github.com/Wikitude/wikitude-phonegap.git

Fetching plugin "https://github.com/Wikitude/wikitude-phonegap.git" via git clone

Fetching plugin via git-clone command: git clone "https://github.com/Wikitude/wikitude-phonegap.git" "/var/folders/rw/jd9w5t217gs60rhc_mmq7n680000gq/T/plugman-tmp1396003821322"

Plugin "https://github.com/Wikitude/wikitude-phonegap.git" fetched.

Copying fetched plugin over "/Users/ants/new/platforms/ios/cordova/plugins/com.wikitude.phonegap.WikitudePlugin"...

Plugin "com.wikitude.phonegap.WikitudePlugin" fetched.

Installing com.wikitude.phonegap.WikitudePlugin (ios)

Installing plugin com.wikitude.phonegap.WikitudePlugin

Beginning processing of action stack for ios project...

Parsing ios project files...

Action stack processing complete.

Writing out ios project files...

Preparing ios project

Processing configuration changes for plugins.

Iterating over installed plugins:

Writing out cordova_plugins.js...

Install complete for com.wikitude.phonegap.WikitudePlugin on ios.

 

            Have fun using world's first AR plugin for PhoneGap. Visit http://developer.wikitude.com/documentation/phonegap for technical support.

 

            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

Congrats! Have fun using the Wikitude Plugin with PhoneGap!
Login or Signup to post a comment