Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15405] 3.2.0 CLI doesn't add all symbols when compiling ad-hoc

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-08T20:38:20.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsCLI
Labelscli, ios, qe-closed-3.2.0, qe-testadded
ReporterDan Tamas
AssigneeChris Barber
Created2013-10-07T16:36:34.000+0000
Updated2014-02-12T08:02:28.000+0000

Description

There is a an error in the *iphone/cli/commands/_build.js* file that prevent all the symbols to set to *define.h* in production. The function *addSymbol* resets the symbols matrix to an empty array each time it is called.
this.symbols[id] = [];
Changing this to
if (!Array.isArray(this.symbols[id])) {
	this.symbols[id] = [];
}
fixes the issue.

Attachments

FileDateSize
app.js2013-10-18T23:15:09.000+00002760

Comments

  1. Chris Barber 2013-10-08

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/4771
  2. Chris Barber 2013-10-18

    To test, build the attached app.js for iOS device, then check that the build/iphone/classes/defines.h contains USE_TI_MEDIA.
  3. Olga Romero 2013-10-18

    Tested with Appcelerator Studio, build: 3.2.0.201310180526 SDK, build 3.2.0.v20131018135643 CLI 3.2.0 Mac osx 10.9 Mavericks Built for iOS device 5c iOS version 7.0.2, checked that the build/iphone/classes/defines.h contains USE_TI_MEDIA.

JSON Source