App working on Xcode but crash on launch from App Store

App was reviewed by Apple and then published in the app store making it available for everyone to use. However, after it was made available in the app store, we tried to download it to our devices and test to ensure whether the app is working as desired. But, we noticed that the app kept on crashing whenever it was launched. The same app is working fine on Xcode.


I am attaching as much information as we could collect at this point of time. Kindly go through the info and revert at earliest.


Information:

XCODE Version 7.3 (7D175)

SWIFT Version 2.2 (swiftlang-703.0.18.1 clang-703.0.29)

Device Info: iPhone 5s (Version 9.3.2)


Crash Log:

Incident Identifier: 567DCDC5-A419-49DD-90FB-EEAF47C26426

CrashReporter Key: 083b7e0b680957caa698a19de5826db3d863fcae

Hardware Model: iPhone6,2

Process: EnglishLearn [230]

Path: /private/var/containers/Bundle/Application/70547034-0475-4D3D-9ED2-098D39CDD4B1/EnglishLearn.app/EnglishLearn

Identifier: com.app.englishlearn

Version: 1.1.0 (1.0)

Code Type: ARM-64 (Native)

Parent Process: launchd [1]



Date/Time: 2016-09-12 15:50:17.17 +0530

Launch Time: 2016-09-12 15:50:16.16 +0530

OS Version: iOS 9.3.2 (13F69)

Report Version: 105



Exception Type: EXC_BREAKPOINT (SIGTRAP)

Exception Codes: 0x0000000000000001, 0x000000010046a5dc

Triggered by Thread: 0



Filtered syslog:

None found



Thread 0 name: Dispatch queue: com.apple.main-thread

Thread 0 Crashed:

0 libswiftCore.dylib 0x000000010046a5dc 0x10032c000 + 1304028

1 EnglishLearn 0x00000001000e020c 0x1000b4000 + 180748

2 EnglishLearn 0x0000000100139f08 0x1000b4000 + 548616

3 EnglishLearn 0x0000000100136520 0x1000b4000 + 533792

4 EnglishLearn 0x0000000100136c94 0x1000b4000 + 535700

5 UIKit 0x0000000187eacc40 0x187e98000 + 85056

6 UIKit 0x0000000187eac844 0x187e98000 + 84036

7 UIKit 0x0000000188252aec 0x187e98000 + 3910380

8 UIKit 0x000000018820f5e4 0x187e98000 + 3634660

9 UIKit 0x000000018820bff4 0x187e98000 + 3620852

10 UIKit 0x000000018815f0c8 0x187e98000 + 2912456

11 UIKit 0x000000018816ca80 0x187e98000 + 2968192

12 CoreFoundation 0x0000000182d04f84 0x182c24000 + 921476

13 CoreFoundation 0x0000000182d048bc 0x182c24000 + 919740

14 CoreFoundation 0x0000000182d02820 0x182c24000 + 911392

15 CoreFoundation 0x0000000182c2cc50 0x182c24000 + 35920

16 GraphicsServices 0x0000000184514088 0x184508000 + 49288

17 UIKit 0x0000000187f16088 0x187e98000 + 516232

18 EnglishLearn 0x0000000100125e9c 0x1000b4000 + 466588

19 libdyld.dylib 0x00000001827ca8b8 0x1827c8000 + 10424



Thread 1:

0 libsystem_kernel.dylib 0x00000001828e8b48 0x1828cc000 + 117576

1 libsystem_pthread.dylib 0x00000001829b1530 0x1829b0000 + 5424

2 libsystem_pthread.dylib 0x00000001829b1020 0x1829b0000 + 4128



Thread 2 name: Dispatch queue: com.apple.libdispatch-manager

Thread 2:

0 libsystem_kernel.dylib 0x00000001828e94d8 0x1828cc000 + 120024

1 libdispatch.dylib 0x00000001827ac7d8 0x182798000 + 83928

2 libdispatch.dylib 0x000000018279b648 0x182798000 + 13896



Thread 3:

0 libsystem_kernel.dylib 0x00000001828e8b48 0x1828cc000 + 117576

1 libsystem_pthread.dylib 0x00000001829b1530 0x1829b0000 + 5424

2 libsystem_pthread.dylib 0x00000001829b1020 0x1829b0000 + 4128



Thread 4:

0 libsystem_kernel.dylib 0x00000001828e8b48 0x1828cc000 + 117576

1 libsystem_pthread.dylib 0x00000001829b1530 0x1829b0000 + 5424

2 libsystem_pthread.dylib 0x00000001829b1020 0x1829b0000 + 4128



Thread 0 crashed with ARM Thread State (64-bit):

x0: 0x000000010097ca00 x1: 0x00000001829aa8f4 x2: 0x000000012750e730 x3: 0x0000000000000008

x4: 0x0000000000000000 x5: 0x0000000000000020 x6: 0x0000000000000000 x7: 0x0000000000000fa0

x8: 0x000000010097ca08 x9: 0x0000000000001000 x10: 0x0000000127510000 x11: 0x0000000000000fff

x12: 0x000000012750c000 x13: 0x0000000000003fff x14: 0xffffffffffffc000 x15: 0x0000000000003fff

x16: 0x0000000182914168 x17: 0x000000010052c040 x18: 0x0000000000000000 x19: 0x00000001a0d103f0

x20: 0x00000001275409e0 x21: 0x00000001888b1cac x22: 0x00000001888b1f1a x23: 0x0000000000000005

x24: 0x0000000000000000 x25: 0x0000000000000001 x26: 0x0000000000000003 x27: 0x0000000000000018

x28: 0x0000000000000000 fp: 0x000000016fd49800 lr: 0x000000010046a5dc

sp: 0x000000016fd497f0 pc: 0x000000010046a5dc cpsr: 0x20000000

>The same app is working fine on Xcode.


Does that mean simulator?


Do you have a more recent report, perhaps with iOS 10.x?

I'm having the same issue. I think the problem is that we are using the AppDelegate.m file to call to a WS on the Main Thread. I will Update my Xcode to the last version and then upload a new version of the App and i will let you know.

Any update on this facing the same issue, tested app on the real device and simulators but got crash at the apple's review side.

App working on Xcode but crash on launch from App Store
 
 
Q