Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1764] Problem in IOS module when trying to return a int64 value

GitHub Issuen/a
ResolutionNeeds more info
Resolution Date2013-09-18T08:06:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
Labelsint64, ios, modules
ReporterArmindo Da Silva
AssigneeShak Hossain


Hi, When I build a IOS module using sdk 3.1.2.GA, I have a problem trying to return int64 value. {panel:title=The Obj-C Function| borderStyle=dashed| borderColor=#ccc| titleBGColor=#F7D6C1| bgColor=#FFFFCE} -(int64) getCustomerId:(id)args { int64 customerId =1; NSLog(@"Customer Id %lli", customerId); return customerId; } {panel} The value received in the app is : 938417712643042800 this works in SDK vers 2.X and maybe in 3.0 but not in 3.1.2.GA and 3.1.1.GA Any idea of how to solve this ? is it a bug in the sdk ? Regards Armindo


  1. Mostafizur Rahman 2013-09-18

    Hello, Can you post some runnable test code, which I can test?
  2. Mostafizur Rahman 2013-12-27

    Hello, We tested this issue with the sample module code below. This is an invalid issue since we can't reproduce it. Let us know if this get any error with our sample.

    Test Environment:

    MAC OS X 10.8.5 XCode 5.0.2 IOS SDK 7.0.3

    Test Code

       -(int64_t) getCustomerId:(id)args
           int64_t customerId =938417712643042800;
           return customerId;
  3. Shak Hossain 2013-12-31

    Closing since we are getting no additional updates from the original reporter and we can't reproduce it.

JSON Source