[TIMOB-9072] iOS: Compiled CommonJS modules failing link
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-05-14T15:27:37.000+0000 |
| Affected Version/s | Release 2.0.1 |
| Fix Version/s | Release 2.0.2, Release 2.1.0, Sprint 2012-10 Core |
| Components | iOS |
| Labels | core, module_module, qe-testadded |
| Reporter | Stephen Tramer |
| Assignee | Stephen Tramer |
| Created | 2012-05-09T11:33:55.000+0000 |
| Updated | 2012-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.
Tested with 2.0.2.v20120514121649 on iPhone Simulator 5.0