The appstore review team told me that the app was crashing on launch.
I believe the app was crashing at didFinishLaunching:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
guard ARWorldTrackingConfiguration.isSupported else {
fatalError("""
ARKit is not available on this device. For apps that require ARKit
for core functionality, use the `arkit` key in the key in the
`UIRequiredDeviceCapabilities` section of the Info.plist to prevent
the app from installing. (If the app can't be installed, this error
can't be triggered in a production scenario.)
In apps where AR is an additive feature, use `isSupported` to
determine whether to show UI for launching AR experiences.
""") // For details, see https://developer.apple.com/documentation/arkit
}
return true
}
However, the app can only be installed on a device which supports ARKit, so I am not sure how apple was able to replicate this on a iOS13 device, as the UIRequiredDeviceCapability includes an ARKit entry in the .plist. Is it possible they are running the app on a device without this capability? Is the app actually crashing because of the fatalerror call?
Here is the crashlog that I was only partially able to symbolicate:
Date/Time: 2019-10-06 13:10:04.9570 -0700
Launch Time: 2019-10-06 13:10:04.7508 -0700
OS Version: iPhone OS 13.1.2 (17A860)
Release Type: User
Baseband Version: 9.00.01
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001a62abefc
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [561]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x00000001a62abefc 0x1a609e000 + 2154236
1 libswiftCore.dylib 0x00000001a62abefc 0x1a609e000 + 2154236
2 libswiftCore.dylib 0x00000001a60c764c 0x1a609e000 + 169548
3 ARC2500A 0x0000000100fcc6c8 #objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 83656 (AppDelegate.swift:0)
4 UIKitCore 0x000000019cf76ebc 0x19c590000 + 10383036
5 UIKitCore 0x000000019cf78c8c 0x19c590000 + 10390668
6 UIKitCore 0x000000019cf7e4c0 0x19c590000 + 10413248
7 UIKitCore 0x000000019c75a810 0x19c590000 + 1878032
8 UIKitCore 0x000000019cbeb3ec 0x19c590000 + 6665196
9 UIKitCore 0x000000019c75b2f8 0x19c590000 + 1880824
10 UIKitCore 0x000000019c75ae04 0x19c590000 + 1879556
11 UIKitCore 0x000000019c75b124 0x19c590000 + 1880356
12 UIKitCore 0x000000019c75a9e0 0x19c590000 + 1878496
13 UIKitCore 0x000000019c75eefc 0x19c590000 + 1896188
14 UIKitCore 0x000000019cb1e028 0x19c590000 + 5824552
15 UIKitCore 0x000000019cc045ac 0x19c590000 + 6768044
16 UIKitCore 0x000000019c75ec34 0x19c590000 + 1895476
17 UIKitCore 0x000000019cc044a8 0x19c590000 + 6767784
18 UIKitCore 0x000000019c75eaa0 0x19c590000 + 1895072
19 UIKitCore 0x000000019c5d3efc 0x19c590000 + 278268
20 UIKitCore 0x000000019c5d2a64 0x19c590000 + 272996
21 UIKitCore 0x000000019c5d3c34 0x19c590000 + 277556
22 UIKitCore 0x000000019cf7c840 0x19c590000 + 10405952
23 UIKitCore 0x000000019cb3ea0c 0x19c590000 + 5958156
24 FrontBoardServices 0x000000019e00b994 0x19dfff000 + 51604
25 FrontBoardServices 0x000000019e030960 0x19dfff000 + 203104
26 FrontBoardServices 0x000000019e0160f8 0x19dfff000 + 94456
27 FrontBoardServices 0x000000019e03061c 0x19dfff000 + 202268
28 libdispatch.dylib 0x0000000198c40184 0x198be4000 + 377220
29 libdispatch.dylib 0x0000000198be9038 0x198be4000 + 20536
30 FrontBoardServices 0x000000019e055540 0x19dfff000 + 353600
31 FrontBoardServices 0x000000019e05520c 0x19dfff000 + 352780
32 FrontBoardServices 0x000000019e055734 0x19dfff000 + 354100
33 CoreFoundation 0x0000000198ef07e0 0x198e47000 + 694240
34 CoreFoundation 0x0000000198ef0738 0x198e47000 + 694072
35 CoreFoundation 0x0000000198eefed0 0x198e47000 + 691920
36 CoreFoundation 0x0000000198eeb01c 0x198e47000 + 671772
37 CoreFoundation 0x0000000198eea8bc 0x198e47000 + 669884
38 GraphicsServices 0x00000001a2d56328 0x1a2d53000 + 13096
39 UIKitCore 0x000000019cf806d4 0x19c590000 + 10421972
40 ARC2500A 0x0000000100fc3010 main + 45072 (TableVC.swift:13)
41 libdyld.dylib 0x0000000198d75460 0x198d74000 + 5216
Thread 1 name: Dispatch queue: com.apple.root.background-qos
Thread 1:
0 libsystem_kernel.dylib 0x0000000198d6acb4 0x198d46000 + 150708
1 libsystem_pthread.dylib 0x0000000198c88d8c 0x198c84000 + 19852
2 libsystem_pthread.dylib 0x0000000198c88d5c 0x198c84000 + 19804
3 CoreFoundation 0x0000000198ecc2f4 0x198e47000 + 545524
4 CoreFoundation 0x0000000198ecb4dc 0x198e47000 + 541916
5 libdispatch.dylib 0x0000000198c3f610 0x198be4000 + 374288
6 libdispatch.dylib 0x0000000198c40184 0x198be4000 + 377220
7 libdispatch.dylib 0x0000000198bf5104 0x198be4000 + 69892
8 libdispatch.dylib 0x0000000198bf579c 0x198be4000 + 71580
9 libsystem_pthread.dylib 0x0000000198c8ff64 0x198c84000 + 48996
10 libsystem_pthread.dylib 0x0000000198c92ae0 0x198c84000 + 60128
Thread 2:
0 libsystem_pthread.dylib 0x0000000198c92ad8 0x198c84000 + 60120
Thread 3:
0 libsystem_pthread.dylib 0x0000000198c92ad8 0x198c84000 + 60120
Thread 4:
0 libsystem_pthread.dylib 0x0000000198c92ad8 0x198c84000 + 60120
Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x0000000198d495f4 0x198d46000 + 13812
1 libsystem_kernel.dylib 0x0000000198d48a60 0x198d46000 + 10848
2 CoreFoundation 0x0000000198ef0068 0x198e47000 + 692328
3 CoreFoundation 0x0000000198eeb188 0x198e47000 + 672136
4 CoreFoundation 0x0000000198eea8bc 0x198e47000 + 669884
5 Foundation 0x000000019922a994 0x199223000 + 31124
6 Foundation 0x000000019922a874 0x199223000 + 30836
7 UIKitCore 0x000000019d01849c 0x19c590000 + 11043996
8 Foundation 0x000000019935b0b0 0x199223000 + 1278128
9 libsystem_pthread.dylib 0x0000000198c8f1ec 0x198c84000 + 45548
10 libsystem_pthread.dylib 0x0000000198c92aec 0x198c84000 + 60140
Thread 6:
0 libsystem_pthread.dylib 0x0000000198c92ad8 0x198c84000 + 60120
Thread 7:
0 libsystem_pthread.dylib 0x0000000198c92ad8 0x198c84000 + 60120
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x8000000100fd0130 x1: 0x0000000000000407 x2: 0x0000000000000407 x3: 0x000000000000002b
x4: 0x0000000107f05230 x5: 0x0000000000000026 x6: 0x0000000000000000 x7: 0x0000000000000c70
x8: 0x0000000000000000 x9: 0x00000000000295b0 x10: 0x00000000000d29d0 x11: 0x0000000000179f41
x12: 0x0000000107f04000 x13: 0x0000000000003fff x14: 0x00000000b71ada31 x15: 0x000000000000080c
x16: 0x0000000198c7e040 x17: 0x000000000000080c x18: 0x0000000000000000 x19: 0x0000000100fd0142
x20: 0x0000000000000002 x21: 0x0000000000000000 x22: 0x0000000000000014 x23: 0x0000000000000000
x24: 0x8000000100fd0130 x25: 0x000000000000000b x26: 0xd0000000000001cb x27: 0x0000000000000051
x28: 0x00000001dc5d1000 fp: 0x000000016ee455d0 lr: 0x00000001a62abefc
sp: 0x000000016ee45550 pc: 0x00000001a62abefc cpsr: 0x60000000
esr: 0xf2000001 Address size fault
Here is an important note from the Apple docs for the isSupported property.
Discussion
Different types of AR experiences (which you configure using concrete
ARConfiguration subclasses) can have different hardware requirements.
Before attempting to create an AR configuration, verify that the
user’s device supports the configuration you plan to use by checking
the isSupported property of the corresponding configuration class. If
this property’s value is false, the current device does not support
the requested configuration.
Important
All ARKit configurations require an iOS device with an A9 or later
processor. If your app otherwise supports other devices and offers
augmented reality as a secondary feature, use this property to
determine whether to offer AR-based features to the user.
If your app requires ARKit for its core functionality, use the arkit
key in the UIRequiredDeviceCapabilities section of your app's
Info.plist to make your app available only on devices that support
ARKit.
Conclusively, this means that the test device used by Apple Store Review does not support ARWorldTrackingConfiguration subclass of ARConfiguration. Probably they use a device with below an A9 processor or they used an iOS version older than 11.0 to test the app.
Otherwise,
In the Info.plist, make sure in your UIRequiredDeviceCapability, you have the arkit entry all in small caps.
Related
My app was rejected from the review based on the error log:
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000048
VM Region Info: 0x48 is not in any region. Bytes before following region: 4372316088
I am unable to reproduce the crash on any of the devices/simulators. I was running various instruments like Zombies and Address Sanitizer, but nothing was found. The app is build for iOS 12.1 and works fine on all tested devices.
Is there a way to discover the origin of the issue please? I came across thread in Apple Dev forum with similar error report pointing to known issues with SFNetwork using iOS 12, but my app does not use CFNetwork. What would you suggest please?
Thank you
Part of the error log from the app review is below:
{"app_name":"xxxxx","timestamp":"2019-11-10 17:11:55.07 -0800","app_version":"1.0","slice_uuid":"xxxxx-735520498fee","adam_id":1452107056,"build_version":"1","bundleID":"com.olaszStudios.xxxxx","share_with_app_devs":true,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 13.1.3 (17A878)","incident_id":"19AC53EB-8539-487A-91E0-BAE0C1C46053","name":"xxxxx"}
Incident Identifier: 19AC53EB-8539-487A-91E0-BAE0C1C46053
CrashReporter Key: 3ae8b3bfcaad4f26596c08d88637fbf24b0a7633
Hardware Model: xxx
Process: xxxxx [13937]
Path: /private/var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/xxxxx.app/xxxxx
Identifier: com.olaszStudios.xxxxx
Version: 1 (1.0)
AppStoreTools: 11B48b
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.olaszStudios.xxxxx [6192]
Date/Time: 2019-11-10 17:11:54.5395 -0800
Launch Time: 2019-11-10 17:11:54.0933 -0800
OS Version: iPhone OS 13.1.3 (17A878)
Release Type: User
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000048
VM Region Info: 0x48 is not in any region. Bytes before following region: 4372316088
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 00000001049c4000-00000001049cc000 [ 32K] r-x/r-x SM=COW ...y.app/xxxxx
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [13937]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 AVFAudio 0x00000001c2174268 0x1c2152000 + 139880
1 AVFAudio 0x00000001c21729ac 0x1c2152000 + 133548
2 AVFAudio 0x00000001c21729ac 0x1c2152000 + 133548
3 Sploony 0x00000001049e7e2c 0x1049c4000 + 146988
4 Sploony 0x00000001049e7c14 0x1049c4000 + 146452
5 UIKitCore 0x00000001b97e2ebc 0x1b8dfc000 + 10383036
6 UIKitCore 0x00000001b97e4c8c 0x1b8dfc000 + 10390668
7 UIKitCore 0x00000001b97ea4c0 0x1b8dfc000 + 10413248
8 UIKitCore 0x00000001b8fc6810 0x1b8dfc000 + 1878032
9 UIKitCore 0x00000001b94573ec 0x1b8dfc000 + 6665196
10 UIKitCore 0x00000001b8fc72f8 0x1b8dfc000 + 1880824
11 UIKitCore 0x00000001b8fc6e04 0x1b8dfc000 + 1879556
12 UIKitCore 0x00000001b8fc7124 0x1b8dfc000 + 1880356
13 UIKitCore 0x00000001b8fc69e0 0x1b8dfc000 + 1878496
14 UIKitCore 0x00000001b8fcaefc 0x1b8dfc000 + 1896188
15 UIKitCore 0x00000001b938a028 0x1b8dfc000 + 5824552
16 UIKitCore 0x00000001b94705ac 0x1b8dfc000 + 6768044
17 UIKitCore 0x00000001b8fcac34 0x1b8dfc000 + 1895476
18 UIKitCore 0x00000001b94704a8 0x1b8dfc000 + 6767784
19 UIKitCore 0x00000001b8fcaaa0 0x1b8dfc000 + 1895072
20 UIKitCore 0x00000001b8e3fefc 0x1b8dfc000 + 278268
21 UIKitCore 0x00000001b8e3ea64 0x1b8dfc000 + 272996
22 UIKitCore 0x00000001b8e3fc34 0x1b8dfc000 + 277556
23 UIKitCore 0x00000001b97e8840 0x1b8dfc000 + 10405952
24 UIKitCore 0x00000001b93aaa0c 0x1b8dfc000 + 5958156
25 FrontBoardServices 0x00000001ba877994 0x1ba86b000 + 51604
26 FrontBoardServices 0x00000001ba89c960 0x1ba86b000 + 203104
27 FrontBoardServices 0x00000001ba8820f8 0x1ba86b000 + 94456
28 FrontBoardServices 0x00000001ba89c61c 0x1ba86b000 + 202268
29 libdispatch.dylib 0x00000001b54ac184 0x1b5450000 + 377220
30 libdispatch.dylib 0x00000001b5455038 0x1b5450000 + 20536
31 FrontBoardServices 0x00000001ba8c1540 0x1ba86b000 + 353600
32 FrontBoardServices 0x00000001ba8c120c 0x1ba86b000 + 352780
33 FrontBoardServices 0x00000001ba8c1734 0x1ba86b000 + 354100
34 CoreFoundation 0x00000001b575c7e0 0x1b56b3000 + 694240
35 CoreFoundation 0x00000001b575c738 0x1b56b3000 + 694072
36 CoreFoundation 0x00000001b575bed0 0x1b56b3000 + 691920
37 CoreFoundation 0x00000001b575701c 0x1b56b3000 + 671772
38 CoreFoundation 0x00000001b57568bc 0x1b56b3000 + 669884
39 GraphicsServices 0x00000001bf5c2328 0x1bf5bf000 + 13096
40 UIKitCore 0x00000001b97ec6d4 0x1b8dfc000 + 10421972
41 xxxxx 0x00000001049cd460 0x1049c4000 + 37984
42 libdyld.dylib 0x00000001b55e1460 0x1b55e0000 + 5216
Thread 1 name: Dispatch queue: com.apple.network.connections
Thread 1:
0 libsystem_kernel.dylib 0x00000001b55d7170 0x1b55b2000 + 151920
1 libsystem_dnssd.dylib 0x00000001c92d6158 0x1c92d3000 + 12632
2 libsystem_dnssd.dylib 0x00000001c92d79f8 0x1c92d3000 + 18936
3 libnetwork.dylib 0x00000001b7b0e794 0x1b79f0000 + 1173396
4 libnetwork.dylib 0x00000001b7b0f578 0x1b79f0000 + 1176952
5 libnetwork.dylib 0x00000001b7b0f004 0x1b79f0000 + 1175556
6 libdispatch.dylib 0x00000001b54ab610 0x1b5450000 + 374288
7 libdispatch.dylib 0x00000001b54ac184 0x1b5450000 + 377220
8 libdispatch.dylib 0x00000001b545a110 0x1b5450000 + 41232
9 libdispatch.dylib 0x00000001b5462340 0x1b5450000 + 74560
10 libsystem_pthread.dylib 0x00000001b54fbfa4 0x1b54f0000 + 49060
11 libsystem_pthread.dylib 0x00000001b54feae0 0x1b54f0000 + 60128
Thread 2:
0 libsystem_pthread.dylib 0x00000001b54fead8 0x1b54f0000 + 60120
Thread 3:
0 libsystem_pthread.dylib 0x00000001b54fead8 0x1b54f0000 + 60120
Thread 4:
0 libsystem_pthread.dylib 0x00000001b54fead8 0x1b54f0000 + 60120
Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x00000001b55b55f4 0x1b55b2000 + 13812
1 libsystem_kernel.dylib 0x00000001b55b4a60 0x1b55b2000 + 10848
2 CoreFoundation 0x00000001b575c068 0x1b56b3000 + 692328
3 CoreFoundation 0x00000001b5757188 0x1b56b3000 + 672136
4 CoreFoundation 0x00000001b57568bc 0x1b56b3000 + 669884
5 Foundation 0x00000001b5a96994 0x1b5a8f000 + 31124
6 Foundation 0x00000001b5a96874 0x1b5a8f000 + 30836
7 UIKitCore 0x00000001b988449c 0x1b8dfc000 + 11043996
8 Foundation 0x00000001b5bc70b0 0x1b5a8f000 + 1278128
9 libsystem_pthread.dylib 0x00000001b54fb1ec 0x1b54f0000 + 45548
10 libsystem_pthread.dylib 0x00000001b54feaec 0x1b54f0000 + 60140
Thread 6:
0 libsystem_pthread.dylib 0x00000001b54fead8 0x1b54f0000 + 60120
Thread 7 name: AVAudioSession Notify Thread
Thread 7:
0 libsystem_kernel.dylib 0x00000001b55b55f4 0x1b55b2000 + 13812
1 libsystem_kernel.dylib 0x00000001b55b4a60 0x1b55b2000 + 10848
2 CoreFoundation 0x00000001b575c068 0x1b56b3000 + 692328
3 CoreFoundation 0x00000001b5757188 0x1b56b3000 + 672136
4 CoreFoundation 0x00000001b57568bc 0x1b56b3000 + 669884
5 AVFAudio 0x00000001c21b7e68 0x1c2152000 + 417384
6 AVFAudio 0x00000001c2208df0 0x1c2152000 + 749040
7 libsystem_pthread.dylib 0x00000001b54fb1ec 0x1b54f0000 + 45548
8 libsystem_pthread.dylib 0x00000001b54feaec 0x1b54f0000 + 60140
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000002825de5e0 x1: 0x00000001ebade94a x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000010a80f080 x5: 0x0000000000000020 x6: 0x000000016b438cd8 x7: 0x0000000000000000
x8: 0x00000001ebade000 x9: 0x0000000000000000 x10: 0x0000000000000002 x11: 0x0000000280bc1fa8
x12: 0x0000000000000002 x13: 0x0000000000000000 x14: 0x0000000000000006 x15: 0x0000000000000032
x16: 0x00000001f27010a8 x17: 0x00000001c2174258 x18: 0x0000000000000000 x19: 0x00000002825de5e0
x20: 0x0000000000000000 x21: 0x00000002825d5da0 x22: 0x0000000000000020 x23: 0x00000002801d28e0
x24: 0x0000000000000000 x25: 0x00000001eb6dcc21 x26: 0x0000000000000010 x27: 0x4000000280bc0400
x28: 0x00000001f90b1000 fp: 0x000000016b439510 lr: 0x00000001c21729ac
sp: 0x000000016b439500 pc: 0x00000001c2174268 cpsr: 0x40000000
esr: 0x92000006 (Data Abort) byte read Translation fault
Binary Images:
0x1049c4000 - 0x104acbfff xxxxx arm64 <ecee71b82c9331ebaaf1735520498fee> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/xxxxx.app/xxxxx
0x104b4c000 - 0x104b53fff GoogleToolboxForMac arm64 <5f9b626d67533ccbae318dd06fe0d217> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/Sploony.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac
0x104b60000 - 0x104b6bfff nanopb arm64 <5dc8b13a7cad3f87a317374d4e52967e> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/Sploony.app/Frameworks/nanopb.framework/nanopb
0x104b7c000 - 0x104bdffff dyld arm64 <571392a7e1e6369f8805c1a141f3c1c5> /usr/lib/dyld
0x104c58000 - 0x104c8bfff SwiftyStoreKit arm64 <b16e5abd43da35c2bef846ae27832694> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/Sploony.app/Frameworks/SwiftyStoreKit.framework/SwiftyStoreKit
0x104ca4000 - 0x104cabfff libswiftARKit.dylib arm64 <428f4bbfa8e43e558832a8665af09444> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/Sploony.app/Frameworks/libswiftARKit.dylib
Our apps on the AppStore have been running for years without any issues. However, since the release of iOS 13, although apps still working fine, but going into
iPad Settings -> MyApp
Crashes and the settings app would end, no issues with previous iOS releases whatsoever.
I looked on the Device Logs from the XCODE Organiser, and can see the following in the logs:
Incident Identifier: DC00F244-958C-407F-BDC9-CFD7D6C3D8C8
CrashReporter Key: e5b2979fc92fb936e83ef8fdab74fbd1c0707ce3
Hardware Model: iPad6,4
Process: Preferences [530]
Path: /Applications/Preferences.app/Preferences
Identifier: com.apple.Preferences
Version: 161.2 (1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.apple.Preferences [634]
Date/Time: 2019-10-05 06:18:38.6274 +0100
Launch Time: 2019-10-05 06:18:17.3730 +0100
OS Version: iPhone OS 13.1.2 (17A860)
Release Type: User
Baseband Version: 7.00.01
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001a581fefc
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [530]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x00000001a581fefc specialized _assertionFailure+ 2154236 (_:_:file:line:flags:) + 440
1 libswiftCore.dylib 0x00000001a581fefc specialized _assertionFailure+ 2154236 (_:_:file:line:flags:) + 440
2 libswiftCore.dylib 0x00000001a563b64c _assertionFailure+ 169548 (_:_:file:line:flags:) + 32
3 SettingsUIKitPrivate 0x00000001bfce0c24 0x1bfcda000 + 27684
4 SettingsUIKitPrivate 0x00000001bfce0fd4 0x1bfcda000 + 28628
5 SwiftUI 0x00000001cd28d86c Binding.init+ 6629484 (get:set:) + 144
6 SettingsUIKitPrivate 0x00000001bfcdf654 0x1bfcda000 + 22100
7 SettingsUIKitPrivate 0x00000001bfcdca54 0x1bfcda000 + 10836
8 SettingsUIKitPrivate 0x00000001bfcdc44c 0x1bfcda000 + 9292
9 SwiftUI 0x00000001cccf88e4 DynamicPropertyBody.update+ 776420 (context:) + 1768
10 SwiftUI 0x00000001cccf9070 protocol witness for static UntypedAttribute._update+ 778352 (_:graph:attribute:) in conformance DynamicPropertyBody<A> + 36
11 AttributeGraph 0x00000001c248e458 partial apply + 28
12 AttributeGraph 0x00000001c2476a60 AG::Graph::UpdateStack::update+ 14944 () + 984
13 AttributeGraph 0x00000001c2476d24 AG::Graph::update_attribute+ 15652 (unsigned int, bool) + 372
14 AttributeGraph 0x00000001c2479e9c AG::Graph::value_ref+ 28316 (AG::attribute_t, AGTypeID, bool*) + 116
15 AttributeGraph 0x00000001c24815ac AG::Graph::EntryExit::update_entry+ 58796 () const + 64
16 AttributeGraph 0x00000001c2476a60 AG::Graph::UpdateStack::update+ 14944 () + 984
17 AttributeGraph 0x00000001c2476d24 AG::Graph::update_attribute+ 15652 (unsigned int, bool) + 372
18 AttributeGraph 0x00000001c2479e9c AG::Graph::value_ref+ 28316 (AG::attribute_t, AGTypeID, bool*) + 116
19 AttributeGraph 0x00000001c24879e4 AGGraphGetValue + 48
20 SwiftUI 0x00000001cce25c20 ViewGraph.sizeThatFits+ 2010144 (_:) + 100
21 SwiftUI 0x00000001cd2e0520 specialized ListItemHost<>.hostSizeThatFits+ 6968608 (width:) + 120
22 SwiftUI 0x00000001ccefb250 #objc ListCoreCellHost.sizeThatFits+ 2884176 (_:) + 48
23 UIKitCore 0x000000019c666b98 -[UITableViewCell systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:] + 592
24 UIKitCore 0x000000019c6dce38 -[UITableView _heightForCell:atIndexPath:] + 436
25 UIKitCore 0x000000019c6c544c __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke + 2568
26 UIKitCore 0x000000019c971d08 +[UIView+ 15129864 (Animation) performWithoutAnimation:] + 96
27 UIKitCore 0x000000019c6c495c -[UITableView _configureCellForDisplay:forIndexPath:] + 248
28 UIKitCore 0x000000019c6d5a04 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 796
29 UIKitCore 0x000000019c6a338c -[UITableView _updateVisibleCellsNow:] + 2608
30 UIKitCore 0x000000019c6c04b0 -[UITableView layoutSubviews] + 160
31 SwiftUI 0x00000001ccef4438 UpdateCoalescingTableView.layoutSubviews+ 2855992 () + 56
32 SwiftUI 0x00000001ccef45e4 #objc UpdateCoalescingTableView.layoutSubviews+ 2856420 () + 28
33 UIKitCore 0x000000019c97f270 -[UIView+ 15184496 (CALayerDelegate) layoutSublayersOfLayer:] + 2140
34 QuartzCore 0x000000019ee6b5f8 -[CALayer layoutSublayers] + 284
35 QuartzCore 0x000000019ee6fe28 CA::Layer::layout_if_needed+ 1396264 (CA::Transaction*) + 480
36 QuartzCore 0x000000019ee7b894 CA::Layer::layout_and_display_if_needed+ 1443988 (CA::Transaction*) + 136
37 QuartzCore 0x000000019edc49f0 CA::Context::commit_transaction+ 694768 (CA::Transaction*, double) + 304
38 QuartzCore 0x000000019edee890 CA::Transaction::commit+ 866448 () + 676
39 QuartzCore 0x000000019edef284 CA::Transaction::observer_callback+ 868996 (__CFRunLoopObserver*, unsigned long, void*) + 92
40 CoreFoundation 0x0000000198463c48 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
41 CoreFoundation 0x000000019845eb34 __CFRunLoopDoObservers + 416
42 CoreFoundation 0x000000019845f100 __CFRunLoopRun + 1308
43 CoreFoundation 0x000000019845e8bc CFRunLoopRunSpecific + 464
44 GraphicsServices 0x00000001a22ca328 GSEventRunModal + 104
45 UIKitCore 0x000000019c4f46d4 UIApplicationMain + 1936
46 Preferences 0x0000000104869974 0x104860000 + 39284
47 libdyld.dylib 0x00000001982e9460 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x0000000198206ad8 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x0000000198206ad8 start_wqthread + 0
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x00000001982bd5f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001982bca60 mach_msg + 72
2 CoreFoundation 0x0000000198464068 __CFRunLoopServiceMachPort + 216
3 CoreFoundation 0x000000019845f188 __CFRunLoopRun + 1444
4 CoreFoundation 0x000000019845e8bc CFRunLoopRunSpecific + 464
5 Foundation 0x000000019879e994 -[NSRunLoop+ 31124 (NSRunLoop) runMode:beforeDate:] + 228
6 Foundation 0x000000019879e874 -[NSRunLoop+ 30836 (NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x000000019c58c49c -[UIEventFetcher threadMain] + 152
8 Foundation 0x00000001988cf0b0 __NSThread__start__ + 848
9 libsystem_pthread.dylib 0x00000001982031ec _pthread_start + 124
10 libsystem_pthread.dylib 0x0000000198206aec thread_start + 8
Thread 4:
0 libsystem_pthread.dylib 0x0000000198206ad8 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000198206ad8 start_wqthread + 0
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x00000001982bd5f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001982bca60 mach_msg + 72
2 CoreFoundation 0x0000000198464068 __CFRunLoopServiceMachPort + 216
3 CoreFoundation 0x000000019845f188 __CFRunLoopRun + 1444
4 CoreFoundation 0x000000019845e8bc CFRunLoopRunSpecific + 464
5 CFNetwork 0x000000019b6d9e68 0x19b6d8000 + 7784
6 Foundation 0x00000001988cf0b0 __NSThread__start__ + 848
7 libsystem_pthread.dylib 0x00000001982031ec _pthread_start + 124
8 libsystem_pthread.dylib 0x0000000198206aec thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0xe000000000000000 x1: 0x0000000280915800 x2: 0x0000000000000007 x3: 0x00000001981ce0dc
x4: 0x0000000000000000 x5: 0x000000016b59a5f0 x6: 0x0000000000000072 x7: 0x0000000000000c70
x8: 0x00000000dfc24834 x9: 0x000000000000007f x10: 0x0000000000000031 x11: 0x00000000000007fb
x12: 0x00000000000007fd x13: 0x0000000000000000 x14: 0x00000000dfe25000 x15: 0x000000000000004a
x16: 0x0000000080000000 x17: 0x000000005fe00000 x18: 0x0000000000000000 x19: 0x00000001bfcfd020
x20: 0x0000000000000002 x21: 0x0000000000000000 x22: 0x00000000000000a8 x23: 0x0000000000000000
x24: 0xe000000000000000 x25: 0x000000000000000b x26: 0x0000000000000000 x27: 0x0000000000000095
x28: 0x00000001bfce0fbc fp: 0x000000016b59a790 lr: 0x00000001a581fefc
sp: 0x000000016b59a710 pc: 0x00000001a581fefc cpsr: 0x60000000
esr: 0xf2000001 Address size fault
I'm scratching my head on this one, the app works fine, just the settings having this issue.
I have a plan about how to diagnose and fix and hopefully should resolve soon but wondered if anyone has seen this yet?
Thanks
Finally, after few hours of going through the settings, code, etc, I finally fixed it.
The approach was to:
1) Edit my APP setting's info.plist file (as text) and take out all sections into text editor, the file almost becomes blank.
2) Re-compile and run on the iPad -> STOP APP -> Go to Settings -> Click on the APP, it now works fine without my settings, so, I thought something must have caused all this.
3) Started pasting back part-by-part into the info.plist file until I finally got the offending section, which was below:
<dict>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
<key>DefaultValue</key>
<string>8101</string>
<key>IsSecure</key>
<string>No</string>
<key>Key</key>
<string>Admin_iTaxi Server Port</string>
<key>KeyboardType</key>
<string>NumberPad</string>
<key>Title</key>
<string>Server Port </string>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
</dict>
4) Looked very strange and bizarre, ... I mean what could possibly be wrong with the above chunk?!... and why was this working on all iOSes until the latest iOS13!?...
5) Checked all spelling, re-ordered the list to make it similar to another one that does work, changed the keyboard type, other items,... started-Stopped, checked settings, same thing,... still crashing!...
6) Finally, I changed the variable name from "Admin_iTaxi Server Port" to "Admin_iTaxi Server XXXPort", re-compiled, and it worked... hmmm... why!?...
7) Went back into the startup code, and noticed that I am setting the variables (if they don't exists) with the following:
if (!IsConfigKeyExist(#"Admin_iTaxi Server Port"))
{
TempServerPortAdmin = 8102;
[[NSUserDefaults standardUserDefaults] setInteger:TempServerPortAdmin forKey:#"Admin_iTaxi Server Port"];
}
8) I then thought, the info.plist file has KEYs and TYPEs, all are set as , can't remember setting any or etc, therefore.
9) Changed the code above into:
if (!IsConfigKeyExist(#"Admin_iTaxi Server Port"))
{
TempServerPortAdmin = 8102;
[[NSUserDefaults standardUserDefaults] setValue:[NSString stringWithFormat:#"%li", TempServerPortAdmin] forKey:#"Admin_iTaxi Server Port"];
}
10) Restored the original variable name on the info.plist, start-stop-check, ... Eureeka,.. it now works...
Conclusion: somehow down the line Apple in their wisdom decided to crash the settings app when they read an Integer into a String variable... why!?... I have no idea, but the fix (as mentioned above), is NOT to store your settings as "Integer" and infect only store as "String" especially if you are going to use these settings in your info.plist file.
This solves the problem of the app's settings crashing with EXC_BREAKPOINT (SIGTRAP)
I hope this helps.
Good luck!
I have a new app which has been rejected twice with the same crash logs. They say it crashes when they tap the Buy button for in app purchase and gave me the crash file. I have symbolicated it and it hasn't been much helpful to me, can someone else take a look and point out if something's wrong?
The IAP has been tested successfully in sandbox with 2 sandbox users. I have also made sure my IAP has been actually "Cleared for sale" from my side and also "Submitted for review". My bank account info is up to date too and contracts are approved.
Here's the symbolicated logs:
{"app_name":"APPNAME","timestamp":"2017-12-18 08:48:19.56 -0800","app_version":"1.0","slice_uuid":"915a18a0-7c26-3ffd-af45-102cc6d53e21","adam_id":1326580740,"build_version":"2","bundleID":"com.MYCOMPANY.APPNAME","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.2.1 (15C153)","incident_id":"43C16882-BFF8-4C5E-80D7-01AEEE78F017","name":"APPNAME"}
Incident Identifier: 43C16882-BFF8-4C5E-80D7-01AEEE78F017
CrashReporter Key: 6079b68e9b231d52a24bc0ce1c55aa975b16774c
Hardware Model: xxx
Process: APPNAME [1217]
Path: /private/var/containers/Bundle/Application/81E108AB-4E43-4034-9A37-6C83929E75D4/APPNAME.app/APPNAME
Identifier: com.MYCOMPANY.APPNAME
Version: 2 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MYCOMPANY.APPNAME [832]
Date/Time: 2017-12-18 08:48:19.4110 -0800
Launch Time: 2017-12-18 08:43:02.9432 -0800
OS Version: iPhone OS 11.2.1 (15C153)
Baseband Version: 6.30.04
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:
0 CoreFoundation 0x18411e364 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x183364528 objc_exception_throw + 55
2 CoreFoundation 0x18411e2ac +[NSException raise:format:] + 115
3 StoreKit 0x19758aa98 -[SKPaymentQueue addPayment:] + 539
4 APPNAME 0x1007a362c 0x100798000 + 46636
5 UIKit 0x18d6346b4 -[UIApplication sendAction:to:from:forEvent:] + 95
6 UIKit 0x18d634634 -[UIControl sendAction:to:forEvent:] + 79
7 UIKit 0x18d61f1dc -[UIControl _sendActionsForEvents:withEvent:] + 439
8 UIKit 0x18d633f28 -[UIControl touchesEnded:withEvent:] + 575
9 UIKit 0x18d633a48 -[UIWindow _sendTouchesForEvent:] + 2543
10 UIKit 0x18d62ef60 -[UIWindow sendEvent:] + 3207
11 UIKit 0x18d5fff64 -[UIApplication sendEvent:] + 339
12 UIKit 0x18df5531c __dispatchPreprocessedEventFromEventQueue + 2363
13 UIKit 0x18df578a8 __handleEventQueueInternal + 4759
14 UIKit 0x18df507c0 __handleHIDEventFetcherDrain + 151
15 CoreFoundation 0x1840c697c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 23
16 CoreFoundation 0x1840c68fc __CFRunLoopDoSource0 + 87
17 CoreFoundation 0x1840c6184 __CFRunLoopDoSources0 + 203
18 CoreFoundation 0x1840c3d5c __CFRunLoopRun + 1047
19 CoreFoundation 0x183fe3e58 CFRunLoopRunSpecific + 435
20 GraphicsServices 0x185e90f84 GSEventRunModal + 99
21 UIKit 0x18d66367c UIApplicationMain + 235
22 APPNAME 0x1007aab60 0x100798000 + 76640
23 libdyld.dylib 0x183b0056c start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000183c302e8 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000183d452f8 pthread_kill$VARIANT$mp + 396
2 libsystem_c.dylib 0x0000000183b9efbc abort + 140
3 libc++abi.dylib 0x000000018333b068 __cxa_bad_cast + 0
4 libc++abi.dylib 0x000000018333b210 default_unexpected_handler+ 8720 () + 0
5 libobjc.A.dylib 0x0000000183364810 _objc_terminate+ 34832 () + 124
6 libc++abi.dylib 0x000000018335354c std::__terminate(void (*)+ 107852 ()) + 16
7 libc++abi.dylib 0x0000000183353158 __cxa_rethrow + 144
8 libobjc.A.dylib 0x00000001833646e8 objc_exception_rethrow + 44
9 CoreFoundation 0x0000000183fe3ec4 CFRunLoopRunSpecific + 544
10 GraphicsServices 0x0000000185e90f84 GSEventRunModal + 100
11 UIKit 0x000000018d66367c UIApplicationMain + 236
12 APPNAME 0x00000001007aab60 0x100798000 + 76640
13 libdyld.dylib 0x0000000183b0056c start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x0000000183c0f568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000183c0f3e0 mach_msg + 72
2 CoreFoundation 0x00000001840c6308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001840c3ed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000183fe3e58 CFRunLoopRunSpecific + 436
5 Foundation 0x0000000184a19594 -[NSRunLoop+ 50580 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x0000000184a389ac -[NSRunLoop+ 178604 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018e1cd7b8 -[UIEventFetcher threadMain] + 136
8 Foundation 0x0000000184b1b0f4 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x0000000183d442b4 _pthread_body + 308
10 libsystem_pthread.dylib 0x0000000183d44180 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000183d42b74 thread_start + 4
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x0000000183c0f568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000183c0f3e0 mach_msg + 72
2 CoreFoundation 0x00000001840c6308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001840c3ed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000183fe3e58 CFRunLoopRunSpecific + 436
5 CFNetwork 0x00000001848d3128 -[__CoreSchedulingSetRunnable runForever] + 780
6 Foundation 0x0000000184b1b0f4 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x0000000183d442b4 _pthread_body + 308
8 libsystem_pthread.dylib 0x0000000183d44180 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000183d42b74 thread_start + 4
Thread 3:
0 libsystem_pthread.dylib 0x0000000183d42b68 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x0000000183d42b68 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000183d42b68 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001c40f9937
x4: 0x0000000183358afd x5: 0x000000016f6674d0 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000183d495e0 x11: 0x0000000000000003
x12: 0xffffffffffffffff x13: 0x0000000000000001 x14: 0x0000000183bb553f x15: 0x0000000000000010
x16: 0x0000000000000148 x17: 0x00000000ffffffff x18: 0xfffffff00e09925c x19: 0x0000000000000006
x20: 0x00000001b4e6fb80 x21: 0x000000016f6674d0 x22: 0x0000000000000303 x23: 0x00000001b4e6fc60
x24: 0x00000001c0005270 x25: 0x0000000000000000 x26: 0x0000000000000001 x27: 0x0000000000000000
x28: 0x000000016f667b30 fp: 0x000000016f667430 lr: 0x0000000183d452f8
sp: 0x000000016f667400 pc: 0x0000000183c302e8 cpsr: 0x00000000
I resolved this.
In Xcode > Target > Capabilities > Make sure to switch on In app purchases here. If you don't, then while testing with Sandbox, the in app purchase will work just fine. However when app review will test OR when app is live, tapping the Buy button will cause the app to crash because for some reason, the product won't load. The crash log won't be much useful as it will just show StoreKit crash but won't mention anything about capability. Enabling the IAP in capabilities is needed for the IAP to work in live apps. I have no idea why this inconsistency exists between Sandbox testing and App review/Live app.
Also in the code, only do addPayment if the Product is not nil. Since my capability wasn't set on, the product wasn't loading. So when I was calling addPayment, it crashed with:
[SKPaymentQueue addPayment:]
Also in iTunes connect, in banking info, make sure the "Account holder type" field is set. Not sure if this is a new field but mind wasn't set and I have been successfully submitting IAP for 5 years. Only this time, it said the holder type wasn't set.
Now the app review team hasn't reported IAP crash.
I have a serious problem with an iOS 9.1 app: I have updated the app, successfully tested it on several iPhone devices, submitted it to the App Store and Apple reviewed and rolled out the app. The app uses Core Data.
The problem is, however, that the app crashes immediately after start up for users that installed it as an update. A crash report is listed below, however, I cannot find the real problem with it (also because not everything is symbolised). If I run it on the same device directly via Xcode, the app works fine and does not crash.
Any ideas of how I could find the error?
Thanks very much for any hint!
Incident Identifier: 82CFBBFB-D78F-45B8-B7B1-5CA927889673
CrashReporter Key: b74b72673e3b94fca688b2e61a466eb9826dc424
Hardware Model: iPhone7,1
Process: MyAppName [826]
Path: /private/var/mobile/Containers/Bundle/Application/13C779F5-8CEB-4815-AF64-18B08827CDEE/MyAppName.app/MyAppName
Identifier: com.myappdomain.MyAppName
Version: 20151128 (1.4)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-12-02 07:07:58.58 +0100
Launch Time: 2015-12-02 07:07:57.57 +0100
OS Version: iOS 9.1 (13B143)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x200000001576a714
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 MyAppName 0x0000000100071a64 0x100040000 + 203364
1 MyAppName 0x00000001000721a0 0x100040000 + 205216
2 MyAppName 0x0000000100071d2c 0x100040000 + 204076
3 MyAppName 0x0000000100073624 0x100040000 + 210468
4 MyAppName 0x00000001000718d8 0x100040000 + 202968
5 MyAppName 0x0000000100071978 0x100040000 + 203128
6 MyAppName 0x0000000100071a20 0x100040000 + 203296
7 MyAppName 0x0000000100072848 0x100040000 + 206920
8 MyAppName 0x0000000100072e08 0x100040000 + 208392
9 MyAppName 0x000000010006c6f8 0x100040000 + 182008
10 MyAppName 0x000000010006fe68 0x100040000 + 196200
11 MyAppName 0x000000010006afdc 0x100040000 + 176092
12 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
13 UIKit 0x00000001884b45c8 -[UINavigationController viewDidAppear:] + 220
14 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
15 UIKit 0x00000001885239b8 -[UITabBarController viewDidAppear:] + 128
16 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
17 UIKit 0x00000001884654f0 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke + 44
18 UIKit 0x000000018846548c -[UIViewController _executeAfterAppearanceBlock] + 92
19 UIKit 0x000000018868c674 _runAfterCACommitDeferredBlocks + 556
20 UIKit 0x00000001886994bc _cleanUpAfterCAFlushAndRunDeferredBlocks + 92
21 CoreFoundation 0x0000000182e0042c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
22 CoreFoundation 0x0000000182dffd64 __CFRunLoopDoBlocks + 308
23 CoreFoundation 0x0000000182dfdcc8 __CFRunLoopRun + 708
24 CoreFoundation 0x0000000182d2cca0 CFRunLoopRunSpecific + 384
25 GraphicsServices 0x000000018df68088 GSEventRunModal + 180
26 UIKit 0x0000000188444ffc UIApplicationMain + 204
27 MyAppName 0x00000001000581e4 0x100040000 + 98788
28 libdyld.dylib 0x000000019824a8b8 start + 4
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x00000001983684fc kevent_qos + 8
1 libdispatch.dylib 0x000000019822ca04 _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x000000019821b874 _dispatch_source_invoke + 0
Thread 2:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000001576a7350 x1: 0x000000015769c200 x2: 0x0000000000000000 x3: 0x0000000100071a40
x4: 0x000000016fdbdf60 x5: 0x000000016fdbdf68 x6: 0x0000000000000000 x7: 0x0000000000000004
x8: 0x200000001576a69c x9: 0x0000000000000018 x10: 0x0000000000000000 x11: 0x0000000300000003
x12: 0x000000015755f2f0 x13: 0x0000000000003fff x14: 0xffffffffffffc000 x15: 0x0000000000003fff
x16: 0x000000010027da54 x17: 0x0000000182e438dc x18: 0x0000000000000000 x19: 0x000000015769c200
x20: 0x00000001576a7350 x21: 0x000000016fdbe260 x22: 0x000000015769c200 x23: 0x000000015769c200
x24: 0x000000015769ccd0 x25: 0x000000015808fc20 x26: 0x000000010006ff58 x27: 0x000000016fdbe198
x28: 0x0000000000000002 fp: 0x000000016fdbe060 lr: 0x00000001000721a0
sp: 0x000000016fdbe020 pc: 0x0000000100071a64 cpsr: 0x20000000
Just in case someone else experiences this issue:
The problem is actually a bug in Swift's implementation of array. The following code crashes in release mode:
myarr.sortInPlace($0.date < $1.date)
However, this code works just fine:
myarr = myarr.sort($0.date < $1.date)
More about this issue (which is hopefully solved soon by Apple) can be found here:
https://forums.developer.apple.com/thread/23455
Bellow there is a crash report provided by Apple:
{"bundleID":"RomaniaMilitary.RomaniaMilitary","app_name":"RomaniaMilitary","bug_type":"109","name":"RomaniaMilitary","os_version":"iPhone OS 7.1.1 (11D201)","version":"1.0 (1.0)"}
Incident Identifier: 1A9B2804-2C07-4E6B-9377-D396F56704CC
CrashReporter Key: 99f9caadfd48c4739585b7383898f343220c933c
Hardware Model: xxx
Process: RomaniaMilitary [457]
Path: /var/mobile/Applications/A07BCAC9-34FA-459D-9231-C21476488D31/RomaniaMilitary.app/RomaniaMilitary
Identifier: RomaniaMilitary.RomaniaMilitary
Version: 1.0 (1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2014-05-15 10:20:18.368 -0700
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
(0x18ab26f50 0x1975041fc 0x18ab2bc04 0x18ab29930 0x18aa495dc 0x100074360 0x18dc38904 0x18dbd6e64 0x18dbd662c 0x18daeaff8 0x18d6dc258 0x18d6d6e20 0x18d6d6cd8 0x18d6d6560 0x18d6d6304 0x18d6cfc38 0x18aae76a8 0x18aae4930 0x18aae4cbc 0x18aa25c20 0x1906c5c0c 0x18db56fdc 0x100074e30 0x197af7aa0)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000197bf258c __pthread_kill + 8
1 libsystem_c.dylib 0x0000000197b86804 abort + 108
2 libc++abi.dylib 0x0000000196dac990 abort_message + 84
3 libc++abi.dylib 0x0000000196dc9c28 default_terminate_handler() + 296
4 libobjc.A.dylib 0x00000001975044d0 _objc_terminate() + 124
5 libc++abi.dylib 0x0000000196dc7164 std::__terminate(void (*)()) + 12
6 libc++abi.dylib 0x0000000196dc6a7c __cxa_throw + 132
7 libobjc.A.dylib 0x0000000197504314 objc_exception_throw + 340
8 CoreFoundation 0x000000018ab2bc00 -[NSObject(NSObject) doesNotRecognizeSelector:] + 216
9 CoreFoundation 0x000000018ab2992c ___forwarding___ + 908
10 CoreFoundation 0x000000018aa495d8 _CF_forwarding_prep_0 + 88
11 RomaniaMilitary 0x000000010007435c 0x100068000 + 50012
12 UIKit 0x000000018dc38900 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 404
13 UIKit 0x000000018dbd6e60 -[UITableView _updateVisibleCellsNow:] + 1928
14 UIKit 0x000000018dbd6628 -[UITableView layoutSubviews] + 164
15 UIKit 0x000000018daeaff4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 344
16 QuartzCore 0x000000018d6dc254 -[CALayer layoutSublayers] + 180
17 QuartzCore 0x000000018d6d6e1c CA::Layer::layout_if_needed(CA::Transaction*) + 296
18 QuartzCore 0x000000018d6d6cd4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
19 QuartzCore 0x000000018d6d655c CA::Context::commit_transaction(CA::Transaction*) + 276
20 QuartzCore 0x000000018d6d6300 CA::Transaction::commit() + 420
21 QuartzCore 0x000000018d6cfc34 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 76
22 CoreFoundation 0x000000018aae76a4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
23 CoreFoundation 0x000000018aae492c __CFRunLoopDoObservers + 368
24 CoreFoundation 0x000000018aae4cb8 __CFRunLoopRun + 760
25 CoreFoundation 0x000000018aa25c1c CFRunLoopRunSpecific + 448
26 GraphicsServices 0x00000001906c5c08 GSEventRunModal + 164
27 UIKit 0x000000018db56fd8 UIApplicationMain + 1152
28 RomaniaMilitary 0x0000000100074e2c 0x100068000 + 52780
29 libdyld.dylib 0x0000000197af7a9c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000197bd9aa8 kevent64 + 8
1 libdispatch.dylib 0x0000000197add998 _dispatch_mgr_thread + 48
Thread 2:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 4 name: AFNetworking
Thread 4:
0 libsystem_kernel.dylib 0x0000000197bd9ca0 mach_msg_trap + 8
1 CoreFoundation 0x000000018aae6b70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x000000018aae4d00 __CFRunLoopRun + 832
3 CoreFoundation 0x000000018aa25c1c CFRunLoopRunSpecific + 448
4 Foundation 0x000000018b5c12c0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 292
5 Foundation 0x000000018b61ed74 -[NSRunLoop(NSRunLoop) run] + 92
6 RomaniaMilitary 0x000000010008332c 0x100068000 + 111404
7 Foundation 0x000000018b6a8408 __NSThread__main__ + 996
8 libsystem_pthread.dylib 0x0000000197c73e18 _pthread_body + 164
9 libsystem_pthread.dylib 0x0000000197c73d70 _pthread_start + 136
10 libsystem_pthread.dylib 0x0000000197c71550 thread_start + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x0000000197bd9ca0 mach_msg_trap + 8
1 CoreFoundation 0x000000018aae6b70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x000000018aae4d00 __CFRunLoopRun + 832
3 CoreFoundation 0x000000018aa25c1c CFRunLoopRunSpecific + 448
4 Foundation 0x000000018b61a424 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018b6a8408 __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x0000000197c73e18 _pthread_body + 164
7 libsystem_pthread.dylib 0x0000000197c73d70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197c71550 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x0000000197bf276c __select + 8
1 libsystem_pthread.dylib 0x0000000197c73e18 _pthread_body + 164
2 libsystem_pthread.dylib 0x0000000197c73d70 _pthread_start + 136
3 libsystem_pthread.dylib 0x0000000197c71550 thread_start + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x000000016fd93ee8
x4: 0x0000000000002060 x5: 0x000000016fd93fa0 x6: 0x000000000000006e x7: 0x0000000000000a20
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x000000009aa3f6f7 x11: 0x0000000000000300
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000197b9fdcb
x16: 0x0000000000000148 x17: 0x005bf73d22a9626a x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000019aa522a0 x21: 0x0000000170126318 x22: 0x0000000170126340 x23: 0x00000001987304f0
x24: 0x0000000000000000 x25: 0x000000018e1e51ea x26: 0x000000014fd354f0 x27: 0x00000001702a12c0
x28: 0x00000001700388a0 fp: 0x000000016fd93f20 lr: 0x0000000197c7516c
sp: 0x000000016fd93f00 pc: 0x0000000197bf258c cpsr: 0x00000000
Update :
Apple message:
We found your app crashed on launch so we were unable to review it. Please revise your app and test it on a device to ensure it will launch without crashing, and that it runs as expected, before resubmitting.
I posted full report (without binary image)
You submitted an application without symbols, so Apple couldn't tell you where in your application the fault is. The last bit of your code that is called gets called from
[UITableView _createPreparedCellForGlobalRow:withIndexPath:]
so it will happen in some delegate method of yours where you are preparing a cell, and you are sending a message to some object that doesn't understand it. There's probably more information in their report which you should post. Knowing which method was sent to which kind of object would be very helpful.
Meanwhile, turn on all warnings in your compiler that you can reasonably turn on and fix the problems, then run the static analyser and fix all problems that it finds, then let someone else test your application on a real device, in case you subconsciously avoid problem areas.
Here's what you need to do:
1) You need your archived application, the one you submitted. If not, then disregard the rest of the steps; it's game over.
2) The archive file is a bundle. You must show its contents.
3) Inside you will find a folder marked 'dSYMs.' Inside it you will find a file named <your app name>.app.dSYM. Select it and copy (using Copy/Command-C).
4) Go back one level. Inside the Products/Applications folder you will find your application. It's a bundle as well. You must show its contents.
5) Inside you will find your application's executable file. Now paste the dSYM file you had previously copied here.
6) Fire up your Terminal. cd to the Products/Applications folder in which you just pasted the dSYM file.
7) Now go back to that 'cryptic' report that Apple sent you. I see that you've included more information from the report, but there ought to be a section that shows all the processes that were running on your device at the time, and at the top should be your application. There are two large hexadecimal numbers there. Make a note of the first one. Then go to line 11 in your stack trace. Make a note of that long hexadecimal (0x000000010007435c). You'll need both of these numbers for the next step.
8) On your Terminal's command line enter
atos -o <your application name, including the extension> -l <first hex number> <second hex number>
9) atos should show you something like this:
-[classname method] (in <your app name>) (<file name where your object is located>:<line number>)
Now you'll have the clue you need to go after your problem.
Good luck to you in your endeavors.