Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17061] CLI needs to add the -dead_strip linker flag for i386

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-06-03T00:42:34.000+0000
Affected Version/sRelease 3.2.3
Fix Version/sRelease 3.3.0, Release 3.4.0
ComponentsiOS
Labelsn/a
ReporterMatt Langston
AssigneeChris Barber
Created2014-06-02T20:40:47.000+0000
Updated2014-09-15T15:24:47.000+0000

Description

The CLI's "ti build" command needs to add the -dead_strip linker flag for the i386 architecture (i.e. simulator builds) in order to allow ti.current to host multiple hyperloop modules. Without this flag the link will fail due to duplicate symbols. The issues does not occur for device builds where the -dead_strip linker flag is already present. This was the cause for the hyperloop bug #124: https://github.com/appcelerator/hyperloop/issues/124

Comments

  1. Chris Barber 2014-06-03

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5753 3_3_X pull request: https://github.com/appcelerator/titanium_mobile/pull/5754
  2. Matt Langston 2014-06-03

    Tested that there are no more duplicate symbol errors from the linker when including two hyperloop modules into a ti.current app.
  3. Eric Merriman 2014-06-13

    This appears resolved. We are continuing testing with a focus on trying to find any potential side-effects.
  4. Samuel Dowse 2014-07-01

    Mac OSX 10.9.3 Appcelerator Studio, build: 3.3.0.201406271159 Titanium SDK, build: 3.3.0.v20140701104113 Titanium CLI, build: 3.3.0-rc4 Alloy: 1.4.0-rc3 HyperLoop: 1.0.1 urlSession: 1.0.1 Tested a ti.current application with CoreMotion and urlSession hyperloop modules. Ran on device as well as packaged and installed the app. Ran into no errors during testing.
  5. Eric Merriman 2014-09-15

    Closing

JSON Source