Ok, before you ask, I have been through the documentation and setup the module using the per project instructions and I can't get it to work. Here is what I did:
- Download the module (the Paypal module) from the Appcelerator marketplace
- Extract the contents of the zip to the root of my project folder to end up with
projectroot/modules/iphone/ti.paypal/1.5/and a similar folder for the android version of the module. I tried simply dragging the zip file onto the root of my project folder (as the documentation suggests), but unless I extract the zip file, the tiapp.xml editor does not pick it up. - After extracting the module I did not have to modify my tiapp.xml manually. Titanium "detected" the paypal module and added it to my tiapp.xml file. Here is what is looks like now:
<modules> <module platform="android" version="2.2.1">ti.paypal</module> <module platform="iphone" version="1.5">ti.paypal</module> </modules>
4. In my app.js I now have:var paypal = require('ti.paypal');but this produces an error in the iPhone simulator:[ERROR] Script Error = Couldn't find module: ti.paypal
I've been over the documentation and cannot find where I'm going wrong ... any help would be appreciated.
Many Thanks.
2 Answers
Accepted Answer
have you cleaned the project to force a complete rebuild?
Have you tried doing a Project > Clean and then running again in the simulator?
Your Answer
Think you can help? Login to answer this question!