Bill Noble
Bill Noble

Reputation: 6734

Titanium can't find module

I am trying to use the google maps module but get the error message:

Script Error Couldn't find module: com.moshemarciano.googlemaps for architecture: i386

I installed the com.moshemarciano.googlemaps module using Titanium Studio and it looks to have been installed correctly in ~/Library/Application Support/Titanium/iPhone along with some other modules I have that work fine.

In my tiapp.xml I have:

<module platform="iphone">com.moshemarciano.googlemaps</module>

In my app.js I have:

fb = require('facebook');
googleMapsAPI = require('com.moshemarciano.googlemaps');

The require for 'facebook' works fine but the require for 'com.moshemarciano.googlemaps' causes an error.

Anyone know what I might be doing wrong?

Upvotes: 1

Views: 2413

Answers (1)

WeMakeSoftware
WeMakeSoftware

Reputation: 9162

Check if tiapp.xml contains a reference to com.moshemarciano.googlemaps

<modules>
    ....
    <module platform="android">com.moshemarciano.googlemaps</module>
    ....
</modules>

Upvotes: 1

Related Questions