Skip to content

Commit

Permalink
Merge pull request #5049 from cb1kenobi/timob-15840
Browse files Browse the repository at this point in the history
[TIMOB-15840] Fixed error when the tiapp.xml does not contain a <modules> tag.
  • Loading branch information
ayeung committed Dec 3, 2013
2 parents 1b4ec60 + 1acb41d commit 1807b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1591,11 +1591,11 @@ iOSBuilder.prototype.checkIfNeedToRecompile = function checkIfNeedToRecompile(ne
this.libTiCoreHash = hash(fs.readFileSync(path.join(this.titaniumIosSdkPath, 'libTiCore.a')));

// figure out all of the modules currently in use
this.modulesHash = hash(this.tiapp.modules.filter(function (m) {
this.modulesHash = hash(this.tiapp.modules ? this.tiapp.modules.filter(function (m) {
return !m.platform || /^iphone|ipad|ios|commonjs$/.test(m.platform);
}).map(function (m) {
return m.id + ',' + m.platform + ',' + m.version;
}).join('|'));
}).join('|') : '');

// check if we need to do a rebuild
this.forceRebuild = this.checkIfShouldForceRebuild();
Expand Down

0 comments on commit 1807b72

Please sign in to comment.