Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

require('ti.map'); in alloy.js causes build failure

$
0
0

I'm using Titanium 3.4.1.GA to build an iOS 8 app on my OS X machine. I'm using the Alloy MVC framework. I'm trying to include a map in my app, so I've edited the tiapp.xml file to include the following:

<modules>
    <module platform="iphone">ti.map</module>
</modules>
I've also edited my alloy.js file to have this as the first line:
Alloy.Globals.Map = require('ti.map');
When I build the app, I get a message that the app failed to build:
[ERROR] :  Project failed to build after 14s 749ms
Can anyone help me understand why this is happening? If I remove this line from the file, the app works perfectly.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>