Problem
When you include the Greystrip module in an app the app crashes with SystemExit:65 if building with TiSDK 1.7.x.
Reproduction
Use the module's example app to reproduce this.
Build Error
ld: duplicate symbol _encodingMap in /var/folders/IO/IOzpz3kfFFa5JFj0INAwME+++TI/-Tmp-/mblNyDSti/greystripe/modules/iphone/ti.greystripe/1.0/libti.greystripe.a(GSBase64.o) and /var/folders/IO/IOzpz3kfFFa5JFj0INAwME+++TI/-Tmp-/mblNyDSti/greystripe/build/iphone/build/greystripe.build/Debug-iphonesimulator/greystripe.build/Objects-normal/i386/TiUtils.o for architecture i386
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1
Solution
Place "static" before the three variables declared at the top of TiUtils.m so that they don't collide with the library Greystrip is using.
Pull Request
https://github.com/appcelerator/titanium_mobile/pull/305
Removed estimate... that was a holdover from the original [MOD-148] ticket.
Test bug was fixed in Pull request but fails again when tried with following configuration. TiMob 1.8.0.v20110819142548 is used. Note: Added module ti.greystripe in Titanium folder. Added module tag in tiapp.xml Added app id: 360f96ed-2109-48fb-a020-e42f6433e4f6 in example code for greystripe module. Error is not the same as previous, that was, SystemExit:65 at that time, its different and pasted below: Tested on: Mac OSX Lion TiMob: 1.8.0.v20110819142548 TiStud: 1.0.4.201108101535 Device Used: iPhone Simulator Following is the error: [DEBUG] loading: /Users/vsingh/Library/Application Support/iPhone Simulator/5.0/Applications/944E2F28-27C0-466C-BDAB-01DB621D6164/mod-148.app/app.js, resource: app_js [INFO] Greystripe module loaded [DEBUG] loading: /Users/vsingh/Library/Application Support/iPhone Simulator/5.0/Applications/944E2F28-27C0-466C-BDAB-01DB621D6164/mod-148.app/ti.greystripe.js, resource: ti_greystripe_js [ERROR] Invalid type passed to function. expected: NSDictionary, was: __NSArrayM in -[TiGreystripeModule setup:] (TiGreystripeModule.m:82) [ERROR] Script Error = Invalid type passed to function. expected: NSDictionary, was: __NSArrayM in -[TiGreystripeModule setup:] (TiGreystripeModule.m:82) at app.js (line 8). [DEBUG] application booted in 248.316050 ms
Check the attached screenshot with error
That is a very different error, Vikramjeet. Please open a separate ticket.
I have confirmed that this latest issue is related to code in the module and is not the same issue that was resolved with this ticket. Please open a new issue in the MOD project to address this latest problem.
MOD-177 is the appropriate ticket for the latest reported issue. The original issue reported by this ticket was previously resolved. This ticket should not have been re-opened.