Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9072] iOS: Compiled CommonJS modules failing link

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-05-14T15:27:37.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.0.2, Release 2.1.0, Sprint 2012-10 Core
ComponentsiOS
Labelscore, module_module, qe-testadded
ReporterStephen Tramer
AssigneeStephen Tramer
Created2012-05-09T11:33:55.000+0000
Updated2012-08-10T11:12:23.000+0000

Description

It looks like commonjs module compiles for iOS are currently failing because the filterData function is not being properly exported as part of libtiverify. Relevant build log error, for device:
Undefined symbols for architecture armv7:
  "__Z10filterDataP8NSStringS0_", referenced from:
      -[ModuleTestModuleAssets moduleAsset] in libmodule.test.a(ModuleTestModuleAssets.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note that the device builds (armv6, armv7) indicate C++ name mangling; builds for i386 do not. TESTING: ---- Follow the steps in the [Building Native JS Modules](https://wiki.appcelerator.org/display/guides2/iOS+Module+Development+Guide#iOSModuleDevelopmentGuide-BuildingJavaScriptNativeModules) guide. Expected behavior is for the module to compile and run correctly.

Comments

  1. Natalie Huynh 2012-05-15

    Tested with 2.0.2.v20120514121649 on iPhone Simulator 5.0

JSON Source