Cocos 2d build crash - ios

I'm developing a cocos2d iphone 3.0 game. Yesterday I've uploaded it to testflight and they rejected it because it crashes as soon as it starts.
This is the crash log:
Incident Identifier: D468C8A5-056A-424C-A55C-2E9DDC9AA71D
CrashReporter Key: 1c7ceb385551765c2a8424e10a9353f1bebfdd32
Hardware Model: xxx
Process: HeadIt [2764]
Path: /private/var/mobile/Containers/Bundle/Application/4A7E6750-A6DC-45BB-B57A-4DC448CF0B5F/HeadIt.app/HeadIt
Identifier: com.moonideas.juegoPrueba
Version: 3 (1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-03-03 12:11:05.05 -0800
Launch Time: 2016-03-03 12:11:05.05 -0800
OS Version: iOS 9.2.1 (13D20)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Filtered syslog:
None found
Breadcrumb Trail: (reverse chronological seconds)
0 GC Framework: startAuthenticationForExistingPrimaryPlayer
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000181ad0140 0x181ab4000 + 115008
1 libsystem_pthread.dylib 0x0000000181b98ef8 0x181b94000 + 20216
2 libsystem_c.dylib 0x0000000181a41dac 0x1819e0000 + 400812
3 HeadIt 0x00000001000cf820 -[CCGLProgram addAttribute:index:] (CCGLProgram.m:193)
4 HeadIt 0x00000001000cf494 -[CCGLProgram initWithVertexShaderByteArray:fragmentShaderByteArray:] (CCGLProgram.m:110)
5 HeadIt 0x00000001000aeb44 -[CCShaderCache loadDefaultShaders] (CCShaderCache.m:196)
6 HeadIt 0x00000001000ae5f8 -[CCShaderCache init] (CCShaderCache.m:79)
7 HeadIt 0x00000001000ae4c4 +[CCShaderCache sharedShaderCache] (CCShaderCache.m:42)
8 HeadIt 0x00000001001229ac -[CCTexture initWithData:pixelFormat:pixelsWide:pixelsHigh:contentSizeInPixels:contentScale:] (CCTexture.m:234)
9 HeadIt 0x00000001001233d0 -[CCTexture(Image) initWithCGImage:contentScale:] (CCTexture.m:534)
10 HeadIt 0x0000000100072740 -[CCDirector createStatsLabel] (CCDirector.m:840)
11 HeadIt 0x00000001000d576c -[CCDirectorIOS setProjection:] (CCDirectorIOS.m:216)
12 HeadIt 0x0000000100070fc8 -[CCDirector setGLDefaultValues] (CCDirector.m:217)
13 HeadIt 0x0000000100071318 -[CCDirector setView:] (CCDirector.m:344)
14 HeadIt 0x00000001000d59f4 -[CCDirectorIOS setView:] (CCDirectorIOS.m:262)
15 HeadIt 0x000000010007d4d0 -[CCAppDelegate setupCocos2dWithOptions:] (CCAppDelegate.m:205)
16 HeadIt 0x0000000100110954 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:34)
17 UIKit 0x0000000186c95704 0x186c0c000 + 562948
18 UIKit 0x0000000186ec4130 0x186c0c000 + 2851120
19 UIKit 0x0000000186ec84b8 0x186c0c000 + 2868408
20 UIKit 0x0000000186ec55c0 0x186c0c000 + 2856384
21 FrontBoardServices 0x00000001834e3790 0x1834bc000 + 161680
22 FrontBoardServices 0x00000001834e3b10 0x1834bc000 + 162576
23 CoreFoundation 0x0000000181ee4efc 0x181e08000 + 904956
24 CoreFoundation 0x0000000181ee4990 0x181e08000 + 903568
25 CoreFoundation 0x0000000181ee2690 0x181e08000 + 894608
26 CoreFoundation 0x0000000181e11680 0x181e08000 + 38528
27 UIKit 0x0000000186c8e580 0x186c0c000 + 533888
28 UIKit 0x0000000186c88d90 0x186c0c000 + 511376
29 HeadIt 0x00000001000d09c4 main (main.m:14)
30 libdyld.dylib 0x00000001819b28b8 0x1819b0000 + 10424
Thread 1 name: Dispatch queue: com.apple.gamecenter.GKDaemonProxy
Thread 1:
0 libsystem_kernel.dylib 0x0000000181ab54f8 0x181ab4000 + 5368
1 libdispatch.dylib 0x0000000181992a38 0x181980000 + 76344
2 GameCenterFoundation 0x000000018f993ad0 0x18f938000 + 375504
3 libdispatch.dylib 0x0000000181981630 0x181980000 + 5680
4 libdispatch.dylib 0x00000001819815f0 0x181980000 + 5616
5 libdispatch.dylib 0x000000018198d634 0x181980000 + 54836
6 libdispatch.dylib 0x00000001819850f4 0x181980000 + 20724
7 libdispatch.dylib 0x00000001819815f0 0x181980000 + 5616
8 libdispatch.dylib 0x000000018198fa88 0x181980000 + 64136
9 libdispatch.dylib 0x000000018198f224 0x181980000 + 61988
10 libsystem_pthread.dylib 0x0000000181b95470 0x181b94000 + 5232
11 libsystem_pthread.dylib 0x0000000181b95020 0x181b94000 + 4128
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x0000000181ad14fc 0x181ab4000 + 120060
1 libdispatch.dylib 0x000000018199494c 0x181980000 + 84300
2 libdispatch.dylib 0x00000001819837bc 0x181980000 + 14268
Thread 3:
0 libsystem_kernel.dylib 0x0000000181ad0b6c 0x181ab4000 + 117612
1 libsystem_pthread.dylib 0x0000000181b95530 0x181b94000 + 5424
2 libsystem_pthread.dylib 0x0000000181b95020 0x181b94000 + 4128
Thread 4:
0 libsystem_kernel.dylib 0x0000000181ad0b6c 0x181ab4000 + 117612
1 libsystem_pthread.dylib 0x0000000181b95530 0x181b94000 + 5424
2 libsystem_pthread.dylib 0x0000000181b95020 0x181b94000 + 4128
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x000000016fda1cf7
x4: 0x000000016fda18d0 x5: 0x0000000000000010 x6: 0x31343a39323a3931 x7: 0x0000000000000660
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000003c57 x11: 0x00000001a1cc1661
x12: 0x00000001a1cc1661 x13: 0x0000000000000018 x14: 0x000000008000001f x15: 0x0000000080000023
x16: 0x0000000000000148 x17: 0x00000001001781a0 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000019f81f000 x21: 0x000000010015f0fd x22: 0x0000000000000010 x23: 0x0000000000000018
x24: 0x0000000000000014 x25: 0x0000000187602d97 x26: 0x000000012cf65610 x27: 0x000000012ce86520
x28: 0x0000000000000008 fp: 0x000000016fda1880 lr: 0x0000000181b98ef8
sp: 0x000000016fda1860 pc: 0x0000000181ad0140 cpsr: 0x00000000
The weird thing is that apparently it falls when the app is configuring cocos2d:
15 HeadIt 0x000000010007d4d0 -[CCAppDelegate setupCocos2dWithOptions:] (CCAppDelegate.m:205)
I didn't change anything of Cocos2d. Has anyone ever experienced this? Any suggestions? Thanks in advance

Related

My app works fine in debug version and only crash in release version when using the following method of AFNewtworking 3.0

// This line crashes in release version (TestFlight)
// a method called from AFNetworking 3, I added it using CocoaPods.
let dataTask:NSURLSessionDataTask =
self.afUrlSessionManager!.dataTaskWithRequest(request) { (response, responseObject, error) in
if( error != nil){
loginFailure(error,nil)
}else{
// parse responseObject json
let loginData:NSMutableDictionary = responseObject as! NSMutableDictionary
}
}
dataTask.resume()
The crash report sent by Apple review team:
Incident Identifier: D2CE605A-2EC7-4BCE-B8B7-07BC5F93E56D
CrashReporter Key: d66ba2277da7577ba138220c9e93f0d613cebb50
Hardware Model: xxx
Process: AfaqyGPS [366]
Path: /private/var/containers/Bundle/Application/2A6F7DAC-41A2-42A4-8DE1-4C8100F5F58B/AfaqyGPS.app/AfaqyGPS
Identifier: AF-GP
Version: 5.0 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: AF-GP [447]
Date/Time: 2016-10-18 21:29:29.6894 -0700
Launch Time: 2016-10-18 21:29:21.1932 -0700
OS Version: iPhone OS 10.0.2 (14A456)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000188d96014 0x188d77000 + 126996
1 libsystem_pthread.dylib 0x0000000188e5d460 0x188e58000 + 21600
2 libsystem_c.dylib 0x0000000188d0a3f4 0x188ca7000 + 406516
3 libswiftCore.dylib 0x0000000100980100 swift_deletedMethodError (__hidden#8337_:113)
4 libswiftCore.dylib 0x0000000100965bc0 swift::swift_dynamicCastFailure(swift::Metadata const*, swift::Metadata const*, char const*) (__hidden#7547_:409)
5 libswiftCore.dylib 0x0000000100965c50 swift_dynamicCastClass (__hidden#7547_:501)
6 libswiftCore.dylib 0x000000010098ee04 swift_dynamicCastObjCClassUnconditional (__hidden#9867_:1003)
7 AfaqyGPS 0x00000001001518d4 static Services.(login(String, password : String, loginSuccess : () -> (), loginFailure : (NSError?, NSString?) -> ()) -> ()).(closure #1) (Services.swift:801)
8 AFNetworking 0x0000000100661594 __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke_2.150 (AFURLSessionManager.m:308)
9 libdispatch.dylib 0x0000000188c51200 0x188c50000 + 4608
10 libdispatch.dylib 0x0000000188c511c0 0x188c50000 + 4544
11 libdispatch.dylib 0x0000000188c55b30 0x188c50000 + 23344
12 CoreFoundation 0x0000000189d75f2c 0x189c99000 + 905004
13 CoreFoundation 0x0000000189d73b18 0x189c99000 + 895768
14 CoreFoundation 0x0000000189ca2048 0x189c99000 + 36936
15 GraphicsServices 0x000000018b725198 0x18b719000 + 49560
16 UIKit 0x000000018fc75628 0x18fbfa000 + 505384
17 UIKit 0x000000018fc70360 0x18fbfa000 + 484192
18 AfaqyGPS 0x000000010011c07c main (AppDelegate.swift:14)
19 libdyld.dylib 0x0000000188c845b8 0x188c80000 + 17848
Thread 1:
0 libsystem_pthread.dylib 0x0000000188e58db0 0x188e58000 + 3504
Thread 2:
0 libsystem_pthread.dylib 0x0000000188e58db0 0x188e58000 + 3504
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x0000000188d7816c 0x188d77000 + 4460
1 libsystem_kernel.dylib 0x0000000188d77fdc 0x188d77000 + 4060
2 CoreFoundation 0x0000000189d75cec 0x189c99000 + 904428
3 CoreFoundation 0x0000000189d73908 0x189c99000 + 895240
4 CoreFoundation 0x0000000189ca2048 0x189c99000 + 36936
5 Foundation 0x000000018a7b0b1c 0x18a7a4000 + 51996
6 Foundation 0x000000018a7d160c 0x18a7a4000 + 185868
7 UIKit 0x00000001905eac7c 0x18fbfa000 + 10423420
8 Foundation 0x000000018a8ae50c 0x18a7a4000 + 1090828
9 libsystem_pthread.dylib 0x0000000188e5b860 0x188e58000 + 14432
10 libsystem_pthread.dylib 0x0000000188e5b770 0x188e58000 + 14192
11 libsystem_pthread.dylib 0x0000000188e58dbc 0x188e58000 + 3516
Thread 4:
0 libsystem_kernel.dylib 0x0000000188d96a88 0x188d77000 + 129672
1 libsystem_pthread.dylib 0x0000000188e5936c 0x188e58000 + 4972
2 libsystem_pthread.dylib 0x0000000188e58db4 0x188e58000 + 3508
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x0000000188d7816c 0x188d77000 + 4460
1 libsystem_kernel.dylib 0x0000000188d77fdc 0x188d77000 + 4060
2 CoreFoundation 0x0000000189d75cec 0x189c99000 + 904428
3 CoreFoundation 0x0000000189d73908 0x189c99000 + 895240
4 CoreFoundation 0x0000000189ca2048 0x189c99000 + 36936
5 CFNetwork 0x000000018a48fcec 0x18a3c3000 + 838892
6 Foundation 0x000000018a8ae50c 0x18a7a4000 + 1090828
7 libsystem_pthread.dylib 0x0000000188e5b860 0x188e58000 + 14432
8 libsystem_pthread.dylib 0x0000000188e5b770 0x188e58000 + 14192
9 libsystem_pthread.dylib 0x0000000188e58dbc 0x188e58000 + 3516
Thread 6:
0 libsystem_pthread.dylib 0x0000000188e58db0 0x188e58000 + 3504
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001702c34a6
x4: 0x0000000000000014 x5: 0x0000000000000020 x6: 0x0000000000000000 x7: 0x0000000000000cf0
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000003db5 x11: 0x00000001b0989bcb
x12: 0x00000001b0989bcb x13: 0x0000000000000018 x14: 0x0000000000000001 x15: 0x0000000000000881
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001ae3eec40 x21: 0x00000001ae3f40d8 x22: 0x000000016fd02a58 x23: 0x000000016fd02a40
x24: 0x000000010013cae8 x25: 0x0000000170472bc0 x26: 0xffffffffffffffff x27: 0x0000000170469bc0
x28: 0x000000010013cab4 fp: 0x000000016fd02990 lr: 0x0000000188e5d460
sp: 0x000000016fd02970 pc: 0x0000000188d96014 cpsr: 0x00000000
Finally I fixed the issue, I was using the following method to encode parameters json object that appended to the URL and that makes the application to crash only in release version. I removed it and used instead data.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLHostAllowedCharacterSet()); it works fine and the application was approved.
+(id)getJSONDictObjFromString:(NSString *)jsonString{
NSError * err;
if ([jsonString isKindOfClass:[NSDictionary class]]) {
return jsonString;
}
NSData *data =[jsonString dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary * response;
if(data!=nil){
response = (NSDictionary *)[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&err];
}
return response;
}

UIactivitycontroller crash log

I've submitted my app to apple and they've returned the following crash report. In their response they mention problems with the UIActivityViewController. I've try'd exporting nothing, a few items, and many items, and they all work for me. Here is the crash report, any insight as how to go about fixing my code will be greatly appreciated.
{"app_name":"My Movies","timestamp":"2016-11-09 09:31:21.24 -0800","app_version":"1.02","slice_uuid":"56a6e389-c77c-3d01-b158-506b66e410b2","adam_id":0,"build_version":"1.02","bundleID":"Kirk5291.MyMovies","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.1.1 (14B100)","incident_id":"FA447ABF-99C4-4874-8FA3-A40A91B5E882","name":"My Movies"}
Incident Identifier: FA447ABF-99C4-4874-8FA3-A40A91B5E882
CrashReporter Key: a36779df2325372846e1db609ddeb937c42042f5
Hardware Model: xxx
Process: My Movies [1470]
Path: /private/var/containers/Bundle/Application/51E92E50-D3EE-431A-8D2F-C65D87B98175/My Movies.app/My Movies
Identifier: Kirk5291.MyMovies
Version: 1.02 (1.02)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: Kirk5291.MyMovies [1004]
Date/Time: 2016-11-09 09:31:21.1881 -0800
Launch Time: 2016-11-09 09:31:18.4795 -0800
OS Version: iPhone OS 10.1.1 (14B100)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
(0x18c3ce1c0 0x18ae0855c 0x192c57998 0x192572598 0x1925702e4 0x1924b3d5c 0x1924a5b10 0x192214854 0x18c37b7dc 0x18c37940c 0x18c37989c 0x18c2a8048 0x18dd2e198 0x19228d2fc 0x192288034 0x1000eba28 0x18b28c5b8)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018b39e014 0x18b37f000 + 126996
1 libsystem_pthread.dylib 0x000000018b466450 0x18b461000 + 21584
2 libsystem_c.dylib 0x000000018b3123e0 0x18b2af000 + 406496
3 libc++abi.dylib 0x000000018addd2d4 0x18addc000 + 4820
4 libc++abi.dylib 0x000000018adfacc0 0x18addc000 + 126144
5 libobjc.A.dylib 0x000000018ae08844 0x18ae00000 + 34884
6 libc++abi.dylib 0x000000018adf766c 0x18addc000 + 112236
7 libc++abi.dylib 0x000000018adf7234 0x18addc000 + 111156
8 libobjc.A.dylib 0x000000018ae0871c 0x18ae00000 + 34588
9 CoreFoundation 0x000000018c2a80bc 0x18c29f000 + 37052
10 GraphicsServices 0x000000018dd2e198 0x18dd22000 + 49560
11 UIKit 0x000000019228d2fc 0x192212000 + 504572
12 UIKit 0x0000000192288034 0x192212000 + 483380
13 My Movies 0x00000001000eba28 0x1000e4000 + 31272
14 libdyld.dylib 0x000000018b28c5b8 0x18b288000 + 17848
Thread 1:
0 libsystem_kernel.dylib 0x000000018b39ea88 0x18b37f000 + 129672
1 libsystem_pthread.dylib 0x000000018b46235c 0x18b461000 + 4956
2 libsystem_pthread.dylib 0x000000018b461da4 0x18b461000 + 3492
Thread 2:
0 libsystem_pthread.dylib 0x000000018b461da0 0x18b461000 + 3488
Thread 3:
0 libsystem_kernel.dylib 0x000000018b39ea88 0x18b37f000 + 129672
1 libsystem_pthread.dylib 0x000000018b462178 0x18b461000 + 4472
2 libsystem_pthread.dylib 0x000000018b461da4 0x18b461000 + 3492
Thread 4:
0 libsystem_pthread.dylib 0x000000018b461da0 0x18b461000 + 3488
Thread 5:
0 libsystem_pthread.dylib 0x000000018b461da0 0x18b461000 + 3488
Thread 6 name: com.apple.uikit.eventfetch-thread
Thread 6:
0 libsystem_kernel.dylib 0x000000018b38016c 0x18b37f000 + 4460
1 libsystem_kernel.dylib 0x000000018b37ffdc 0x18b37f000 + 4060
2 CoreFoundation 0x000000018c37bcec 0x18c29f000 + 904428
3 CoreFoundation 0x000000018c379908 0x18c29f000 + 895240
4 CoreFoundation 0x000000018c2a8048 0x18c29f000 + 36936
5 Foundation 0x000000018cdb9a8c 0x18cdad000 + 51852
6 Foundation 0x000000018cdda57c 0x18cdad000 + 185724
7 UIKit 0x0000000192c02a2c 0x192212000 + 10422828
8 Foundation 0x000000018ceb747c 0x18cdad000 + 1090684
9 libsystem_pthread.dylib 0x000000018b464850 0x18b461000 + 14416
10 libsystem_pthread.dylib 0x000000018b464760 0x18b461000 + 14176
11 libsystem_pthread.dylib 0x000000018b461dac 0x18b461000 + 3500
Thread 7:
0 libsystem_kernel.dylib 0x000000018b39e314 0x18b37f000 + 127764
1 libsystem_c.dylib 0x000000018b2bc23c 0x18b2af000 + 53820
2 libc++.1.dylib 0x000000018adcd994 0x18ad86000 + 293268
3 JavaScriptCore 0x0000000190b53384 0x19027c000 + 9270148
4 JavaScriptCore 0x0000000190b52484 0x19027c000 + 9266308
5 JavaScriptCore 0x0000000190b522c0 0x19027c000 + 9265856
6 JavaScriptCore 0x0000000190b52160 0x19027c000 + 9265504
7 JavaScriptCore 0x0000000190b53470 0x19027c000 + 9270384
8 JavaScriptCore 0x0000000190b5339c 0x19027c000 + 9270172
9 JavaScriptCore 0x0000000190b5364c 0x19027c000 + 9270860
10 libsystem_pthread.dylib 0x000000018b464850 0x18b461000 + 14416
11 libsystem_pthread.dylib 0x000000018b464760 0x18b461000 + 14176
12 libsystem_pthread.dylib 0x000000018b461dac 0x18b461000 + 3500
Thread 8 name: WebThread
Thread 8:
0 libsystem_kernel.dylib 0x000000018b39de64 0x18b37f000 + 126564
1 libsystem_pthread.dylib 0x000000018b467da4 0x18b461000 + 28068
2 libsystem_pthread.dylib 0x000000018b467fa8 0x18b461000 + 28584
3 WebCore 0x0000000190e53924 0x190deb000 + 428324
4 WebCore 0x0000000190e53884 0x190deb000 + 428164
5 CoreFoundation 0x000000018c37b7dc 0x18c29f000 + 903132
6 CoreFoundation 0x000000018c37940c 0x18c29f000 + 893964
7 CoreFoundation 0x000000018c379a4c 0x18c29f000 + 895564
8 CoreFoundation 0x000000018c2a8048 0x18c29f000 + 36936
9 WebCore 0x0000000190e5145c 0x190deb000 + 418908
10 libsystem_pthread.dylib 0x000000018b464850 0x18b461000 + 14416
11 libsystem_pthread.dylib 0x000000018b464760 0x18b461000 + 14176
12 libsystem_pthread.dylib 0x000000018b461dac 0x18b461000 + 3500
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001702e83b7
x4: 0x000000018adfbbc3 x5: 0x000000016fd1b540 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000000000 x11: 0x0000000000000010
x12: 0x000000018b329772 x13: 0x0000000000000000 x14: 0x0000030000000300 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001b0c1bc40 x21: 0x000000016fd1b540 x22: 0x00000001b0c22bb8 x23: 0x0000000000000001
x24: 0x0000000174200140 x25: 0x0000000000000000 x26: 0x0000000000000001 x27: 0x0000000000000000
x28: 0x000000016fd1bbe0 fp: 0x000000016fd1b4a0 lr: 0x000000018b466450
sp: 0x000000016fd1b480 pc: 0x000000018b39e014 cpsr: 0x00000000

App works on simulator but doesn't work on iPhone (swift 2 and xcode 7)

I made app in swift 2 and xcode 7. It works on the simulator but does not work on an iPhone 6. Why is it?
It crashes when the TabBar is clicked and then a chat message is tapped
I use this library:
https://github.com/jessesquires/JSQMessagesViewController
for the chat messages
Error log:
Kamol, [02.12.15 14:49]
{"app_name":"maktub","app_version":"1.0","bundleID":"uz.futuresoft.maktub","adam_id":0,"os_version":"iPhone OS 8.4 (12H143)","slice_uuid":"cbddcfc8-7bbb-3765-805c-b7352bc5245d","share_with_app_devs":false,"build_version":"1","is_first_party":false,"bug_type":"109","name":"maktub"}
Incident Identifier: EF19A878-B639-47BE-B3C0-376AE5892DAD
CrashReporter Key: d9dae756a92cb540dd6c07d93162d74b72d2109d
Hardware Model: iPhone7,2
Process: maktub [1093]
Path: /private/var/mobile/Containers/Bundle/Application/242B74B9-9368-4639-B939-FF1624D7AD7C/maktub.app/maktub
Identifier: uz.futuresoft.maktub
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-12-02 14:10:10.356 +0500
Launch Time: 2015-12-02 14:09:50.479 +0500
OS Version: iOS 8.4 (12H143)
Report Version: 105
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000100061844
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 maktub 0x0000000100061844 0x100010000 + 333892
1 maktub 0x0000000100087fc0 0x100010000 + 491456
2 maktub 0x00000001000882d0 0x100010000 + 492240
3 UIKit 0x0000000188334c14 0x188324000 + 68628
4 UIKit 0x0000000188334924 0x188324000 + 67876
5 UIKit 0x00000001884d71ec 0x188324000 + 1782252
6 UIKit 0x00000001883e9e80 0x188324000 + 810624
7 UIKit 0x00000001883e9c4c 0x188324000 + 810060
8 UIKit 0x00000001883e9bcc 0x188324000 + 809932
9 UIKit 0x00000001883316f0 0x188324000 + 55024
10 QuartzCore 0x0000000187c6ddb4 0x187c60000 + 56756
11 QuartzCore 0x0000000187c6881c 0x187c60000 + 34844
12 QuartzCore 0x0000000187c686c0 0x187c60000 + 34496
13 QuartzCore 0x0000000187c67e54 0x187c60000 + 32340
14 QuartzCore 0x0000000187c67bd4 0x187c60000 + 31700
15 QuartzCore 0x0000000187c612fc 0x187c60000 + 4860
16 CoreFoundation 0x00000001838742a0 0x183794000 + 918176
17 CoreFoundation 0x000000018387122c 0x183794000 + 905772
18 CoreFoundation 0x000000018387160c 0x183794000 + 906764
19 CoreFoundation 0x000000018379d2d0 0x183794000 + 37584
20 GraphicsServices 0x000000018d1f36f8 0x18d1e8000 + 46840
21 UIKit 0x000000018839af3c 0x188324000 + 487228
22 maktub 0x000000010007ebd0 0x100010000 + 453584
23 libdyld.dylib 0x0000000195c32a04 0x195c30000 + 10756
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000195d30c24 0x195d30000 + 3108
1 libdispatch.dylib 0x0000000195c15e6c 0x195c04000 + 73324
2 libdispatch.dylib 0x0000000195c07998 0x195c04000 + 14744
Thread 2:
0 libsystem_kernel.dylib 0x0000000195d4bc78 0x195d30000 + 113784
1 libsystem_pthread.dylib 0x0000000195de52d8 0x195de4000 + 4824
2 libsystem_pthread.dylib 0x0000000195de4eec 0x195de4000 + 3820
Thread 3:
0 libsystem_kernel.dylib 0x0000000195d4bc78 0x195d30000 + 113784
1 libsystem_pthread.dylib 0x0000000195de52d8 0x195de4000 + 4824
2 libsystem_pthread.dylib 0x0000000195de4eec 0x195de4000 + 3820
Thread 4:
0 libsystem_kernel.dylib 0x0000000195d4bc78 0x195d30000 + 113784
1 libsystem_pthread.dylib 0x0000000195de52d8 0x195de4000 + 4824
2 libsystem_pthread.dylib 0x0000000195de4eec 0x195de4000 + 3820
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000001 x1: 0x00000001000007f0 x2: 0x0000000174245fd8 x3: 0x000000016fdecce6
x4: 0x0000000000000400 x5: 0x000000016fdec980 x6: 0x000000000
Kamol, [02.12.15 14:49]
0000001 x7: 0x0000000000000002
x8: 0x0000000000000000 x9: 0x000001a596256959 x10: 0x0000000000000007 x11: 0x0000000196263120
x12: 0x000000013e827cc0 x13: 0x000001a596256959 x14: 0x006d00750063006f x15: 0x00730074006e0065
x16: 0x0000000195ddd698 x17: 0x00000001837bdbac x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000170474900 x21: 0x0000000174245fd0 x22: 0x0000000000000000 x23: 0x0000000174245fd0
x24: 0xc000000000000070 x25: 0x00000001001cb000 x26: 0x0000000174170200 x27: 0x00000001001cc000
x28: 0x00000001001cc000 fp: 0x000000016fded210 lr: 0x00000001000617c0
sp: 0x000000016fded1a0 pc: 0x0000000100061844 cpsr: 0x60000000
Do you have some advices? Thanks

Apple rejected my app saying "We were unable to review your app, as it crashed on launch"

Apple rejected my app saying:
1.2.0 Binary Rejected
2.1 Details: We were unable to review your app, as it crashed on launch. We have attached detailed crash logs to help troubleshoot this
2.1 Details:
We were unable to review your app, as it crashed on launch. We have
attached detailed crash logs to help troubleshoot this issue.
I had already tested my app and I was able to use and test my app before submitting it for review.
It did not crash on launch.
Following is the crash log provided by apple:
Incident Identifier: 9E5C39A4-8777-4BD1-94E9-2EE850653055
CrashReporter Key: 93dafa1433ee75ef4dc2d9ecf04d1e297fbba0d5
Hardware Model: xxx
Process: AppName [664]
Path: /private/var/mobile/Containers/Bundle/Application/174AD849-AE8A-4A0C-8747-F03CE08640DB/AppName.app/AppName
Identifier: com.app.appname.AppName
Version: 1 (1.2.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-10-25 11:43:08.08 -0700
Launch Time: 2015-10-25 11:43:03.03 -0700
OS Version: iOS 9.1 (13B143)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Filtered syslog:
None found
Last Exception Backtrace:
(0x185910f48 0x19a757f80 0x185910e18 0x186804a1c 0x18b14c414 0x18b148f50 0x18f5877c4 0x18f587b44 0x1858c8544 0x1858c7fd8 0x1858c5cd8 0x1857f4ca0 0x18af121c8 0x18af0cffc 0x1001fd6c4 0x19afa68b8)
Global Trace Buffer (reverse chronological seconds):
5.115077 CFNetwork 0x0000000185011a18 TCP Conn 0x13ce7fb40 SSL Handshake DONE
5.135314 CFNetwork 0x0000000185011928 TCP Conn 0x13ce7fb40 starting SSL negotiation
5.135787 CFNetwork 0x00000001850b3a30 TCP Conn 0x13ce7fb40 complete. fd: 12, err: 0
5.136040 CFNetwork 0x00000001850b4f5c TCP Conn 0x13ce7fb40 event 1. err: 0
5.148872 CFNetwork 0x00000001850b5034 TCP Conn 0x13ce7fb40 started
5.150566 CFNetwork 0x000000018510a608 Creating default cookie storage with default identifier
5.150566 CFNetwork 0x000000018510a5d4 Faulting in CFHTTPCookieStorage singleton
5.150566 CFNetwork 0x000000018515c394 Faulting in NSHTTPCookieStorage singleton
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000019b0c3140 0x19b0a8000 + 110912
1 libsystem_pthread.dylib 0x000000019b18cef8 0x19b188000 + 20216
2 libsystem_c.dylib 0x000000019b036b78 0x19afd4000 + 404344
3 libc++abi.dylib 0x0000000199dcd3f4 0x199dcc000 + 5108
4 libc++abi.dylib 0x0000000199de9e98 0x199dcc000 + 122520
5 libobjc.A.dylib 0x000000019a758248 0x19a750000 + 33352
6 libc++abi.dylib 0x0000000199de6f44 0x199dcc000 + 110404
7 libc++abi.dylib 0x0000000199de6b10 0x199dcc000 + 109328
8 libobjc.A.dylib 0x000000019a758120 0x19a750000 + 33056
9 CoreFoundation 0x00000001857f4d48 0x1857ec000 + 36168
10 UIKit 0x000000018af121c8 0x18ae8c000 + 549320
11 UIKit 0x000000018af0cffc 0x18ae8c000 + 528380
12 AppName 0x00000001001fd6c4 0x100064000 + 1676996
13 libdyld.dylib 0x000000019afa68b8 0x19afa4000 + 10424
Thread 1:
0 libsystem_kernel.dylib 0x000000019b0c3b6c 0x19b0a8000 + 113516
1 libsystem_pthread.dylib 0x000000019b189530 0x19b188000 + 5424
2 libsystem_pthread.dylib 0x000000019b189020 0x19b188000 + 4128
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x000000019b0c44fc 0x19b0a8000 + 115964
1 libdispatch.dylib 0x000000019af88a04 0x19af74000 + 84484
2 libdispatch.dylib 0x000000019af77874 0x19af74000 + 14452
Thread 3:
0 libsystem_kernel.dylib 0x000000019b0c3b6c 0x19b0a8000 + 113516
1 libsystem_pthread.dylib 0x000000019b189530 0x19b188000 + 5424
2 libsystem_pthread.dylib 0x000000019b189020 0x19b188000 + 4128
Thread 4 name: GAIThread
Thread 4:
0 libsystem_kernel.dylib 0x000000019b0a8a40 0x19b0a8000 + 2624
1 libsystem_kernel.dylib 0x000000019b0a88bc 0x19b0a8000 + 2236
2 CoreFoundation 0x00000001858c8108 0x1857ec000 + 901384
3 CoreFoundation 0x00000001858c5e0c 0x1857ec000 + 892428
4 CoreFoundation 0x00000001857f4ca0 0x1857ec000 + 36000
5 Foundation 0x000000018676d2bc 0x186760000 + 53948
6 Foundation 0x00000001867c28f4 0x186760000 + 403700
7 AppName 0x00000001002472d0 0x100064000 + 1979088
8 Foundation 0x0000000186853c80 0x186760000 + 998528
9 libsystem_pthread.dylib 0x000000019b18bb28 0x19b188000 + 15144
10 libsystem_pthread.dylib 0x000000019b18ba8c 0x19b188000 + 14988
11 libsystem_pthread.dylib 0x000000019b189028 0x19b188000 + 4136
Thread 5:
0 libsystem_kernel.dylib 0x000000019b0c3b6c 0x19b0a8000 + 113516
1 libsystem_pthread.dylib 0x000000019b189530 0x19b188000 + 5424
2 libsystem_pthread.dylib 0x000000019b189020 0x19b188000 + 4128
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x000000019b0a8a40 0x19b0a8000 + 2624
1 libsystem_kernel.dylib 0x000000019b0a88bc 0x19b0a8000 + 2236
2 CoreFoundation 0x00000001858c8108 0x1857ec000 + 901384
3 CoreFoundation 0x00000001858c5e0c 0x1857ec000 + 892428
4 CoreFoundation 0x00000001857f4ca0 0x1857ec000 + 36000
5 CFNetwork 0x000000018508db84 0x184fe0000 + 711556
6 Foundation 0x0000000186853c80 0x186760000 + 998528
7 libsystem_pthread.dylib 0x000000019b18bb28 0x19b188000 + 15144
8 libsystem_pthread.dylib 0x000000019b18ba8c 0x19b188000 + 14988
9 libsystem_pthread.dylib 0x000000019b189028 0x19b188000 + 4136
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x000000019b0c3368 0x19b0a8000 + 111464
1 CoreFoundation 0x00000001858ce670 0x1857ec000 + 927344
2 libsystem_pthread.dylib 0x000000019b18bb28 0x19b188000 + 15144
3 libsystem_pthread.dylib 0x000000019b18ba8c 0x19b188000 + 14988
4 libsystem_pthread.dylib 0x000000019b189028 0x19b188000 + 4136
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x000000013ce0a0b7
x4: 0x0000000199deae02 x5: 0x000000016fd9b520 x6: 0x000000000000006e x7: 0x0000000000000f80
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000000000 x11: 0x0000000000000010
x12: 0x0000000000000000 x13: 0x0000000000000002 x14: 0x0000000000000000 x15: 0x0000030000000300
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001a1986000 x21: 0x000000016fd9b520 x22: 0x000000013cd28c50 x23: 0x00000001a1991b68
x24: 0x0000000000000001 x25: 0xb400b434638f59a0 x26: 0x000000013ce00a50 x27: 0x0000000000000000
x28: 0x0000000000000001 fp: 0x000000016fd9b480 lr: 0x000000019b18cef8
sp: 0x000000016fd9b460 pc: 0x000000019b0c3140 cpsr: 0x00000000
Binary Images:
0x100064000 - 0x100693fff AppName arm64 <4ec6d754547d35e0ac7cdec73135e3f7> /var/mobile/Containers/Bundle/Application/174AD849-AE8A-4A0C-8747-F03CE08640DB/AppName.app/AppName
0x100874000 - 0x1008cbfff Alamofire arm64 <5108ad4090ed34eb91c922f2403e5d44> /var/mobile/Containers/Bundle/Application/174AD849-AE8A-4A0C-8747-F03CE08640DB/AppName.app/Frameworks/Alamofire.framework/Alamofire
0x100ad0000 - 0x100ad7fff libswiftAVFoundation.dylib arm64 <8f4c4419e8c33db7a3c122d8fc56cc09> /var/mobile/Containers/Bundle/Application/174AD849-AE8A-4A0C-8747-F03CE08640DB/AppName.app/Frameworks/libswiftAVFoundation.dylib
0x100af4000 - 0x100d07fff libswiftCore.dylib arm64 <1c8fc0a4195f3207ac97389aafa69c65> /var/mobile/Containers/Bundle/Application/174AD849-AE8A-4A0C-8747-F03CE08640DB/AppName.app/Frameworks/libswiftCore.dylib
How do I see the exact error/reason for crash?
What should I do now?

Understanding iPhone Crash Log...Having No Luck

AppStore rejected app for crashing although I cannot replicate the issue on simulator or device.
Here is the crash log which I cannot symbolicate even after following detailed instructions
from here How to symbolicate crash log Xcode?
Can anybody help decipher the crash log itself
Incident Identifier: 54A732D9-02FB-4B43-9784-84931F15A53D
CrashReporter Key: 09ad0b91dc85fc08d672efb5d6a9629b1e5cbf1c
Hardware Model: xxx
Process: MyApp [1716]
Path:
Identifier:
Version: 1.06 (1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-10-20 12:42:20.20 -0700
Launch Time: 2015-10-20 12:42:12.12 -0700
OS Version: iOS 9.0.2 (13A452)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Filtered syslog:
None found
Last Exception Backtrace:
(0x185748f5c 0x19a31bf80 0x183c8434c 0x1000997a4 0x18acd980c 0x18acd9308 0x18acd9190 0x18a4a9040 0x19ab09770 0x19ab0ee20 0x185700258 0x1856fe0c0 0x18562cdc0 0x1905d4088 0x18ad06f44 0x10009dcfc 0x19ab3a8b8)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000019ac631e0 0x19ac48000 + 111072
1 libsystem_pthread.dylib 0x000000019ad2cf0c 0x19ad28000 + 20236
2 libsystem_c.dylib 0x000000019abcab78 0x19ab68000 + 404344
3 libc++abi.dylib 0x00000001999993f4 0x199998000 + 5108
4 libc++abi.dylib 0x00000001999b5e98 0x199998000 + 122520
5 libobjc.A.dylib 0x000000019a31c248 0x19a314000 + 33352
6 libc++abi.dylib 0x00000001999b2f44 0x199998000 + 110404
7 libc++abi.dylib 0x00000001999b2fd0 0x199998000 + 110544
8 libobjc.A.dylib 0x000000019a31c1a4 0x19a314000 + 33188
9 libdispatch.dylib 0x000000019ab09784 0x19ab08000 + 6020
10 libdispatch.dylib 0x000000019ab0ee20 0x19ab08000 + 28192
11 CoreFoundation 0x0000000185700258 0x185624000 + 901720
12 CoreFoundation 0x00000001856fe0c0 0x185624000 + 893120
13 CoreFoundation 0x000000018562cdc0 0x185624000 + 36288
14 GraphicsServices 0x00000001905d4088 0x1905c8000 + 49288
15 UIKit 0x000000018ad06f44 0x18ac8c000 + 503620
16 MyApp 0x000000010009dcfc 0x100090000 + 56572
17 libdyld.dylib 0x000000019ab3a8b8 0x19ab38000 + 10424
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x000000019ac6459c 0x19ac48000 + 116124
1 libdispatch.dylib 0x000000019ab1ca04 0x19ab08000 + 84484
2 libdispatch.dylib 0x000000019ab0b93c 0x19ab08000 + 14652
Thread 2:
0 libsystem_kernel.dylib 0x000000019ac63c0c 0x19ac48000 + 113676
1 libsystem_pthread.dylib 0x000000019ad29538 0x19ad28000 + 5432
2 libsystem_pthread.dylib 0x000000019ad29028 0x19ad28000 + 4136
Thread 3:
0 libsystem_kernel.dylib 0x000000019ac63c0c 0x19ac48000 + 113676
1 libsystem_pthread.dylib 0x000000019ad29538 0x19ad28000 + 5432
2 libsystem_pthread.dylib 0x000000019ad29028 0x19ad28000 + 4136
Thread 4 name: Dispatch queue: com.apple.coremedia.capturesource.notifications
Thread 4:
0 libsystem_kernel.dylib 0x000000019ac48d2c 0x19ac48000 + 3372
1 libsystem_platform.dylib 0x000000019ad25534 0x19ad20000 + 21812
2 libsystem_malloc.dylib 0x000000019ac90920 0x19ac8c000 + 18720
3 libobjc.A.dylib 0x000000019a335ae8 0x19a314000 + 137960
4 CoreFoundation 0x000000018562cb6c 0x185624000 + 35692
5 Foundation 0x00000001865a7c90 0x186594000 + 81040
6 CoreFoundation 0x00000001856ee6ac 0x185624000 + 829100
7 CoreFoundation 0x00000001856edecc 0x185624000 + 827084
8 CoreFoundation 0x00000001856edc4c 0x185624000 + 826444
9 CoreFoundation 0x0000000185753434 0x185624000 + 1242164
10 CoreFoundation 0x000000018562e834 0x185624000 + 43060
11 CoreFoundation 0x000000018565125c 0x185624000 + 184924
12 CoreMedia 0x0000000185f880dc 0x185f6c000 + 114908
13 CoreMedia 0x0000000186038704 0x185f6c000 + 837380
14 libdispatch.dylib 0x000000019ab097b0 0x19ab08000 + 6064
15 libdispatch.dylib 0x000000019ab09770 0x19ab08000 + 6000
16 libdispatch.dylib 0x000000019ab1575c 0x19ab08000 + 55132
17 libdispatch.dylib 0x000000019ab0d274 0x19ab08000 + 21108
18 libdispatch.dylib 0x000000019ab1762c 0x19ab08000 + 63020
19 libdispatch.dylib 0x000000019ab1734c 0x19ab08000 + 62284
20 libsystem_pthread.dylib 0x000000019ad29478 0x19ad28000 + 5240
21 libsystem_pthread.dylib 0x000000019ad29028 0x19ad28000 + 4136
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000070021 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x0000000137018038 x10: 0x0000000000000000 x11: 0x0000000000003fff
x12: 0x0000000136d8c000 x13: 0x0000000000003fff x14: 0xffffffffffffc000 x15: 0x0000000000003fff
x16: 0x0000000000000170 x17: 0x000000019a336a74 x18: 0x0000000000000000 x19: 0x000000016e12f000
x20: 0x0000000000000021 x21: 0x00000000800020ff x22: 0x0000000000002907 x23: 0x00000001a14e0000
x24: 0x0000000000010000 x25: 0x00000001a14ec000 x26: 0x0000000080000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x000000016e12ef70 lr: 0x000000019ad29538
sp: 0x000000016e12eef0 pc: 0x000000019ac63c0c cpsr: 0x40000000
Thanks

Resources