I got a crash log from apple , to symbolicate it , I'm using the symbolicate crash.
However, I'm unable to get it done.
When I run the atos command
atos -arch arm64 -o MyApp.app.dSYM/Contents/Resources/DWARF/Myapp -l
0x1f1bc2000 0x00000001f1be50dc
for a line (which say thread 0 crashed from the log),
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001f1be50dc 0x1f1bc2000 + 143580
I got:
NSNotificationName.TimeOutUserInteraction.unsafeMutableAddressor (in MyApp) (InterractionUIApplication.swift:0)
Does this mean, NSNotificationName.TimeOutUserInteraction.unsafeMutableAddressor is causing the crash ?
From the Xcode device logs:I'm able to retrieve:
Last Exception Backtrace:
0 CoreFoundation 0x1d590a3a8 __exceptionPreprocess + 232
1 libobjc.A.dylib 0x1d4b0fd00 objc_exception_throw + 59
2 CoreFoundation 0x1d58229f8 -[NSObject+ 223736 (NSObject) doesNotRecognizeSelector:] + 143
3 CoreFoundation 0x1d590fd54 ___forwarding___ + 1411
4 CoreFoundation 0x1d5911b50 _CF_forwarding_prep_0 + 95
5 FBSDKCoreKit 0x105f67530 0x105f24000 + 275760
6 FBSDKCoreKit 0x105f673ac 0x105f24000 + 275372
7 FBSDKCoreKit 0x105f2df28 0x105f24000 + 40744
8 FBSDKCoreKit 0x105f2b0b0 0x105f24000 + 28848
9 FBSDKCoreKit 0x105f2afbc 0x105f24000 + 28604
10 FBSDKCoreKit 0x105f70fe0 0x105f24000 + 315360
11 FBSDKCoreKit 0x105f7078c 0x105f24000 + 313228
12 FBSDKCoreKit 0x105f2bb28 0x105f24000 + 31528
13 FBSDKCoreKit 0x105f34cac 0x105f24000 + 68780
14 Foundation 0x1d638115c __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_2 + 27
15 CoreFoundation 0x1d5878acc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 27
16 CoreFoundation 0x1d5878a8c ___CFXRegistrationPost_block_invoke + 67
17 CoreFoundation 0x1d5877f30 _CFXRegistrationPost + 419
18 CoreFoundation 0x1d5877bbc ___CFXNotificationPost_block_invoke + 99
19 CoreFoundation 0x1d57ee768 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1503
20 CoreFoundation 0x1d5877664 _CFXNotificationPost + 715
21 Foundation 0x1d62727c4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 71
22 UIKitCore 0x202bd2398 -[UIApplication _stopDeactivatingForReason:] + 1339
23 UIKitCore 0x20247010c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 487
24 UIKitCore 0x202470e5c _performActionsWithDelayForTransitionContext + 119
25 UIKitCore 0x20246feb8 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 259
26 UIKitCore 0x202474ea8 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 363
27 UIKitCore 0x2027bb904 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 479
28 FrontBoardServices 0x1d82ccc58 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke_3 + 243
29 libdispatch.dylib 0x1d5319884 _dispatch_client_callout + 19
30 libdispatch.dylib 0x1d531ce5c _dispatch_block_invoke_direct + 251
31 FrontBoardServices 0x1d830918c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 47
32 FrontBoardServices 0x1d8308e08 -[FBSSerialQueue _performNext] + 435
33 FrontBoardServices 0x1d8309404 -[FBSSerialQueue _performNextFromRunLoopSource] + 55
34 CoreFoundation 0x1d589a444 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
35 CoreFoundation 0x1d589a3c0 __CFRunLoopDoSource0 + 91
36 CoreFoundation 0x1d5899c7c __CFRunLoopDoSources0 + 179
37 CoreFoundation 0x1d5894950 __CFRunLoopRun + 987
38 CoreFoundation 0x1d5894254 CFRunLoopRunSpecific + 451
39 GraphicsServices 0x1d7ad3d8c GSEventRunModal + 107
40 UIKitCore 0x202bdc4c0 UIApplicationMain + 215
41 MyApp 0x104d97148 0x104d90000 + 29000
42 libdyld.dylib 0x1d5350fd8 start + 3
Code related to the notification:
import UIKit
// User Activity Timer
extension NSNotification.Name {
public static let TimeOutUserInteraction: NSNotification.Name = NSNotification.Name(rawValue: "TimeOutUserInteraction")
}
class InterractionUIApplication: UIApplication {
static let timeoutInSeconds: TimeInterval = 60 * 20 // 20 minutes
private var idleTimer: Timer?
private var enabledUserInteractionTracking: Bool = false
func startUserInternactionTracking() {
enabledUserInteractionTracking = true
resetIdleTimer()
}
func stopUserInternactionTracking() {
enabledUserInteractionTracking = false
if let idleTimer = idleTimer {
idleTimer.invalidate()
}
idleTimer = nil
}
override func sendEvent(_ event: UIEvent) {
super.sendEvent(event)
guard enabledUserInteractionTracking else {
return
}
if idleTimer != nil {
resetIdleTimer()
}
if let touches = event.allTouches {
for touch in touches {
if touch.phase == UITouch.Phase.began {
resetIdleTimer()
}
}
}
// Resent the timer because there was user interaction.
func resetIdleTimer() {
if let idleTimer = idleTimer {
idleTimer.invalidate()
}
idleTimer = Timer.scheduledTimer(timeInterval: InterractionUIApplication.timeoutInSeconds, target: self, selector: #selector(idleTimerExceeded), userInfo: nil, repeats: false)
}
// If the timer reaches the limit as defined in timeoutInSeconds, post this notification.
#objc func idleTimerExceeded() {
NotificationCenter.default.post(name: Notification.Name.TimeOutUserInteraction, object: nil)
}
}
This is the output I got from symbolicatecrash:
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash -v unsymbolicated.crash > symbolicated.crash
Symbolicating unsymbolicated.crash ...
92791 characters read.
Use of uninitialized value $sdkGuess in concatenation (.) or string at /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash line 1369.
SDK guess for tool search is ''
otool path is '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool'
atos path is '/Applications/Xcode.app/Contents/Developer/usr/bin/atos'
symbols path is '/Applications/Xcode.app/Contents/Developer/usr/bin/symbols'
size path is '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/size'
Hardware Model xxx
OS Version 12.3.1 Build 16F203
1 binary images referenced:
MyApp (/var/containers/Bundle/Application/42051481-B8DA-47ED-A109-8E17F54C829A/MyApp.app/MyApp)
Num stacks found: 11
0 binary images remain after pruning:
($hwModel, $osVersion, $osBuild) = (xxx, 12.3.1, 16F203)
$versionPattern = {xxx 12.3.1 (16F203),xxx 12.3.1 (16F203) *,12.3.1 (16F203),12.3.1 (16F203) *,12.3.1,16F203,16F203 *}
Symbol directory paths: /Users/venkatanandamuri/Library/Developer/Xcode/iOS DeviceSupport/12.3.1 (16F203) arm64e/Symbols
Finding Symbols:
0 binary images were found.
No symbolic information found
The crash log I got is:
{"app_name":"MyApp","timestamp":"2019-06-28 11:45:18.77 -0700","app_version":"3.0.0","slice_uuid":"dc2048fb-776c-34d2-a7f3-0be90aa110c7","adam_id":1217032222,"build_version":"34","bundleID":"com.tes.mobile.ab11","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 12.3.1 (16F203)","incident_id":"F61FEE35-605C-43A2-A0DE-3F64A3164371","name":"MyApp"}
Incident Identifier: F61FEE35-605C-43A2-A0DE-3F64A3164371
CrashReporter Key: 14224d89ad771b01037a2ad242ffbbbdda806dd4
Hardware Model: xxx
Process: MyApp [13107]
Path: /private/var/containers/Bundle/Application/42051481-B8DA-47ED-A109-8E17F54C829A/MyApp.app/Myapp
Identifier: com.test.mobile.ab11
Version: 34 (3.0.0)
AppStoreTools: 10G3
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.test.mobile.ab11 [6071]
Date/Time: 2019-06-28 11:45:18.5650 -0700
Launch Time: 2019-06-28 11:45:08.3705 -0700
OS Version: iPhone OS 12.3.1 (16F203)
Baseband Version: 7.70.01
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
Last Exception Backtrace:
(0x1f204827c 0x1f12229f8 0x1f1f64ab8 0x1f204dac4 0x1f204f75c 0x101d674b8 0x101d67320 0x101d2dce0 0x101d2ae68 0x101d2ad74 0x101d70f68 0x101d70714 0x101d2b8e0 0x101d34708 0x1f1fb9318 0x1f1fb92e4 0x1f1fb87d8 0x1f1fb8484 0x1f1f31d64 0x1f1fb7f34 0x1f29a07f4 0x21e53ad0c 0x21de094a0 0x21de0a188 0x21de0925c 0x21de0df5c 0x21e13e054 0x1f49c45d8 0x1f1a887d4 0x1f1a2d5d8 0x1f49fe040 0x1f49fdcdc 0x1f49fe294 0x1f1fda018 0x1f1fd9f98 0x1f1fd9880 0x1f1fd47bc 0x1f1fd40b0 0x1f41d479c 0x21e544978 0x100cdf138 0x1f1a998e0)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001f1be50dc 0x1f1bc2000 + 143580
1 libsystem_pthread.dylib 0x00000001f1c5e094 0x1f1c5c000 + 8340
2 libsystem_c.dylib 0x00000001f1b3ef4c 0x1f1ae4000 + 372556
3 libsystem_c.dylib 0x00000001f1b3eeb4 0x1f1ae4000 + 372404
4 libc++abi.dylib 0x00000001f120b788 0x1f120a000 + 6024
5 libc++abi.dylib 0x00000001f120b934 0x1f120a000 + 6452
6 libobjc.A.dylib 0x00000001f1222e00 0x1f121d000 + 24064
7 MyApp 0x0000000100d5dd34 0x100cd8000 + 548148
8 libc++abi.dylib 0x00000001f1217838 0x1f120a000 + 55352
9 libc++abi.dylib 0x00000001f12178c4 0x1f120a000 + 55492
10 libdispatch.dylib 0x00000001f1a887e8 0x1f1a28000 + 395240
11 libdispatch.dylib 0x00000001f1a2d5d8 0x1f1a28000 + 21976
12 FrontBoardServices 0x00000001f49fe040 0x1f49b8000 + 286784
13 FrontBoardServices 0x00000001f49fdcdc 0x1f49b8000 + 285916
14 FrontBoardServices 0x00000001f49fe294 0x1f49b8000 + 287380
15 CoreFoundation 0x00000001f1fda018 0x1f1f30000 + 696344
16 CoreFoundation 0x00000001f1fd9f98 0x1f1f30000 + 696216
17 CoreFoundation 0x00000001f1fd9880 0x1f1f30000 + 694400
18 CoreFoundation 0x00000001f1fd47bc 0x1f1f30000 + 673724
19 CoreFoundation 0x00000001f1fd40b0 0x1f1f30000 + 671920
20 GraphicsServices 0x00000001f41d479c 0x1f41ca000 + 42908
21 UIKitCore 0x000000021e544978 0x21dc88000 + 9161080
22 MyApp 0x0000000100cdf138 0x100cd8000 + 28984
23 libdyld.dylib 0x00000001f1a998e0 0x1f1a98000 + 6368
Related
My Xcode app has RevenueCat Purchases.configure(withAPIKey: "myApiKey") which runs fine in a device from Xcode. The same app crashes in TestFlight after 2 minutes even if left alone. I commented out Purchases.configure and it stopped crashing in TestFlight.
I need help.
2 Crash reports from my iPhone device:
Date/Time: 2022-06-29 13:51:48.0337 -0700
Launch Time: 2022-06-29 13:20:37.1510 -0700
OS Version: iPhone OS 15.5 (19F77)
Release Type: User
Baseband Version: 7.61.00
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
Last Exception Backtrace:
0 CoreFoundation 0x18151fd0c __exceptionPreprocess + 216
1 libobjc.A.dylib 0x198d10ee4 objc_exception_throw + 56
2 CoreFoundation 0x18161e740 -[NSInvocation
retainArguments].cold.1 + 0
3 CoreFoundation 0x181617398 __CFReallocationFailed + 116
4 CoreFoundation 0x1814be03c __CFSafelyReallocate + 68
5 Foundation 0x182bcbff0 _convertJSONString + 208
6 Foundation 0x182bd9318 _writeJSONString + 80
7 Foundation 0x182c4a3cc ___writeJSONObject_block_invoke + 384
8 CoreFoundation 0x1814ca988 NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK + 16
9 CoreFoundation 0x1814e14f4 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 208
10 Foundation 0x182bd0c38 _writeJSONObject + 468
11 Foundation 0x182c42978 -[_NSJSONWriter dataWithRootObject:options:] + 84
12 Foundation 0x182c11aa8 +[NSJSONSerialization dataWithJSONObject:options:error:] + 116
13 Purchases 0x1055ea8a0 0x1055d8000 + 75936
14 Purchases 0x1055e9584 0x1055d8000 + 71044
15 Purchases 0x1055e9478 0x1055d8000 + 70776
16 Purchases 0x1055e1540 0x1055d8000 + 38208
17 Purchases 0x1055fd680 0x1055d8000 + 153216
18 PurchasesCoreSwift 0x105646638 0x10562c000 + 108088
19 PurchasesCoreSwift 0x105645cc0 0x10562c000 + 105664
20 Purchases 0x1055f619c 0x1055d8000 + 123292
21 Purchases 0x1055fd314 0x1055d8000 + 152340
22 Purchases 0x1055fd198 0x1055d8000 + 151960
23 Purchases 0x1055fbe64 0x1055d8000 + 147044
24 Purchases 0x1055fd128 0x1055d8000 + 151848
25 Purchases 0x1055fc790 0x1055d8000 + 149392
26 Purchases 0x105601078 0x1055d8000 + 168056
27 StoreKit 0x1a9cf3d94 __48-[SKPaymentQueue
_updatedTransactions:restored:]_block_invoke_2 + 64
28 libdispatch.dylib 0x1811df094 _dispatch_call_block_and_release + 24
29 libdispatch.dylib 0x1811e0094 _dispatch_client_callout + 16
30 libdispatch.dylib 0x1811c1858 _dispatch_main_queue_drain + 888
31 libdispatch.dylib 0x1811c14d0
_dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
32 CoreFoundation 0x1814db0c4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
33 CoreFoundation 0x1814985e8 __CFRunLoopRun + 2544
34 CoreFoundation 0x1814ab240 CFRunLoopRunSpecific + 572
35 GraphicsServices 0x1a1fad988 GSEventRunModal + 160
36 UIKitCore 0x183cab41c -[UIApplication _run] + 1080
37 UIKitCore 0x183a44b88 UIApplicationMain + 336
38 libswiftUIKit.dylib 0x197dfaee4 UIApplicationMain(::::) + 100
39 VGravesite 0x104953858 0x10494c000 + 30808
40 dyld 0x104e5c3d0 start + 444
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1bbd0fbbc __pthread_kill + 8
1 libsystem_pthread.dylib 0x1dc763854 pthread_kill + 208
2 libsystem_c.dylib 0x18bc006ac abort + 124
3 libc++abi.dylib 0x198e08dd8 abort_message + 128
4 libc++abi.dylib 0x198df955c demangling_terminate_handler() + 300
5 libobjc.A.dylib 0x198d168f8 _objc_terminate() + 124
6 libc++abi.dylib 0x198e08274 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x198e0821c std::terminate() + 60
8 libdispatch.dylib 0x1811e00a8 _dispatch_client_callout + 36
9 libdispatch.dylib 0x1811c1858 _dispatch_main_queue_drain + 888
10 libdispatch.dylib 0x1811c14d0 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
11 CoreFoundation 0x1814db0c4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
12 CoreFoundation 0x1814985e8 __CFRunLoopRun + 2544
13 CoreFoundation 0x1814ab240 CFRunLoopRunSpecific + 572
14 GraphicsServices 0x1a1fad988 GSEventRunModal + 160
15 UIKitCore 0x183cab41c -[UIApplication _run] + 1080
16 UIKitCore 0x183a44b88 UIApplicationMain + 336
17 libswiftUIKit.dylib 0x197dfaee4 UIApplicationMain(::::) + 100
18 VGravesite 0x104953858 0x10494c000 + 30808
19 dyld 0x104e5c3d0 start + 444
======================================
Date/Time: 2022-06-29 14:26:58.5713 -0700
Launch Time: 2022-06-29 14:25:59.1190 -0700
OS Version: iPhone OS 15.5 (19F77)
Release Type: User
Baseband Version: 7.61.00
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
Kernel Triage:
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1bbd0fbbc __pthread_kill + 8
1 libsystem_pthread.dylib 0x1dc763854 pthread_kill + 208
2 libsystem_c.dylib 0x18bc006ac abort + 124
3 libc++abi.dylib 0x198e08dd8 abort_message + 128
4 libc++abi.dylib 0x198df955c demangling_terminate_handler() + 300
5 libobjc.A.dylib 0x198d168f8 _objc_terminate() + 124
6 libc++abi.dylib 0x198e08274 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x198e0821c std::terminate() + 60
8 libdispatch.dylib 0x1811e00a8 _dispatch_client_callout + 36
9 libdispatch.dylib 0x1811c1858 _dispatch_main_queue_drain + 888
10 libdispatch.dylib 0x1811c14d0
_dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
11 CoreFoundation 0x1814db0c4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
12 CoreFoundation 0x1814985e8 __CFRunLoopRun + 2544
13 CoreFoundation 0x1814ab240 CFRunLoopRunSpecific + 572
14 GraphicsServices 0x1a1fad988 GSEventRunModal + 160
15 UIKitCore 0x183cab41c -[UIApplication _run] + 1080
16 UIKitCore 0x183a44b88 UIApplicationMain + 336
17 libswiftUIKit.dylib 0x197dfaee4 UIApplicationMain(::::) + 100
18 VGravesite 0x1007cb858 0x1007c4000 + 30808
19 dyld 0x100e703d0 start + 444
I tested my iOS app thoroughly in my device and there ware no crash but when I submitted the app for release it crashes repeatedly. I tried to analyze I couldn't find the reason. When I look the creash log it looks crash happens in
Hardware Model: xxx
Process: MyAppName [14002]
Path: /private/var/containers/Bundle/Application/6ED37E47-5605-432E-B077-B6B109B9FE1B/MyAppName.app/MyAppName
Identifier: com.mydomain.MyAppName
Version: 1 (1.0.0)
AppStoreTools: 10B63
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.mydomain.MyAppName [5310]
Date/Time: 2019-03-07 09:24:56.9034 -0800
Launch Time: 2019-03-07 09:20:00.9801 -0800
OS Version: iPhone OS 12.1.4 (16D57)
Baseband Version: 7.32.00
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
Last Exception Backtrace:
0 CoreFoundation 0x182ef1ea4 __exceptionPreprocess + 228
1 libobjc.A.dylib 0x1820c1a50 objc_exception_throw + 55
2 UIKitCore 0x1af72def0 -[UIPopoverPresentationController presentationTransitionWillBegin] + 2691
3 UIKitCore 0x1af736f28 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 2195
4 UIKitCore 0x1af7348ac __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 479
5 UIKitCore 0x1afddc87c _runAfterCACommitDeferredBlocks + 295
6 UIKitCore 0x1afdca878 _cleanUpAfterCAFlushAndRunDeferredBlocks + 383
7 UIKitCore 0x1afdf9880 _afterCACommitHandler + 131
8 CoreFoundation 0x182e816bc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 31
9 CoreFoundation 0x182e7c350 __CFRunLoopDoObservers + 411
10 CoreFoundation 0x182e7c8f0 __CFRunLoopRun + 1263
11 CoreFoundation 0x182e7c0e0 CFRunLoopRunSpecific + 435
12 GraphicsServices 0x1850f5584 GSEventRunModal + 99
13 UIKitCore 0x1afdd0c00 UIApplicationMain + 211
14 MyAppName 0x100e601fc main + 33276 (ChildInfoViewController.swift:15)
15 libdyld.dylib 0x18293abb4 start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000182a87104 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000182b03020 pthread_kill$VARIANT$mp + 380
2 libsystem_c.dylib 0x00000001829ded78 abort + 140
3 libc++abi.dylib 0x00000001820a8f78 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001820a9120 default_unexpected_handler+ 8480 () + 0
5 libobjc.A.dylib 0x00000001820c1e58 _objc_terminate+ 28248 () + 124
6 libc++abi.dylib 0x00000001820b50fc std::__terminate(void (*)+ 57596 ()) + 16
7 libc++abi.dylib 0x00000001820b4cec __cxa_rethrow + 144
8 libobjc.A.dylib 0x00000001820c1c20 objc_exception_rethrow + 44
9 CoreFoundation 0x0000000182e7c14c CFRunLoopRunSpecific + 544
10 GraphicsServices 0x00000001850f5584 GSEventRunModal + 100
11 UIKitCore 0x00000001afdd0c00 UIApplicationMain + 212
12 MyAppName 0x0000000100e601fc main + 33276 (ChildInfoViewController.swift:15)
13 libdyld.dylib 0x000000018293abb4 start + 4
I've got crash logs for my app from App Store. I'm not able to reproduce the crash and having a hard time deciphering it.
Following is the log -
Incident Identifier: AEF0FFDD-77E4-460F-97E4-B97A32EAE36D
CrashReporter Key: 78177aeeda1175c67f4467d02c023a2a165d1a01
Hardware Model: iPhone7,1
Process: Visits [4558]
Path: /private/var/containers/Bundle/Application/81AC75BC-433C-43E7-887D-8FC6BF5B5703/Visits.app/Visits
Identifier: com.x.y
Version: 1.1.1 (1.1.1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.x.y [1143]
Date/Time: 2018-07-20 22:30:36.6608 +0530
Launch Time: 2018-07-20 22:30:35.9017 +0530
OS Version: iPhone OS 11.4.1 (15G77)
Baseband Version: 6.80.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x184136d8c __exceptionPreprocess + 228 (NSException.m:166)
1 libobjc.A.dylib 0x1832f05ec objc_exception_throw + 56 (objc-exception.mm:521)
2 CoreFoundation 0x1840cfd80 -[__NSSingleObjectArrayI objectAtIndex:] + 128 (NSSingleObjectArray.m:16)
3 UIKit 0x18e6b0aa8 -[UITableViewDataSource tableView:cellForRowAtIndexPath:] + 172 (UITableViewDataSource.m:170)
4 UIKit 0x18e3c90f4 -[UITableViewController tableView:cellForRowAtIndexPath:] + 68 (UITableViewController.m:441)
5 UIKit 0x18de130cc -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 668 (UITableView.m:13463)
6 UIKit 0x18de12d84 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 80 (UITableView.m:13514)
7 UIKit 0x18de11aa0 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2280 (UITableView.m:2599)
8 UIKit 0x18de0d5ec -[UITableView layoutSubviews] + 140 (UITableView.m:8565)
9 UIKit 0x18dd4a6f4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1420 (UIView.m:15239)
10 QuartzCore 0x1882bfe54 -[CALayer layoutSublayers] + 184 (CALayer.mm:9357)
11 QuartzCore 0x1882c3fe4 CA::Layer::layout_if_needed(CA::Transaction*) + 324 (CALayer.mm:9237)
12 UIKit 0x18dd62bf4 -[UIView(Hierarchy) layoutBelowIfNeeded] + 548 (UIView.m:10438)
13 Visits 0x1007a8300 MainViewController.initialSetupForScreen() + 804 (MainViewController.swift:217)
14 Visits 0x1007a7ea4 MainViewController.viewDidLoad() + 924 (MainViewController.swift:175)
15 Visits 0x1007a8838 #objc MainViewController.viewDidLoad() + 28
16 UIKit 0x18dd51e64 -[UIViewController loadViewIfRequired] + 1020 (UIViewController.m:3192)
17 UIKit 0x18dd51a50 -[UIViewController view] + 28 (UIViewController.m:3214)
18 UIKit 0x18dd42ce4 -[UIWindow addRootViewControllerViewIfPossible] + 136 (UIWindow.m:1358)
19 UIKit 0x18dd41b18 -[UIWindow _setHidden:forced:] + 272 (UIWindow.m:1455)
20 UIKit 0x18ddcf62c -[UIWindow makeKeyAndVisible] + 48 (UIWindow.m:4883)
21 UIKit 0x18dd45274 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3660 (UIApplication.m:2210)
22 UIKit 0x18dd125e0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1680 (UIApplication.m:3491)
23 UIKit 0x18e342b1c __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 784 (_UICanvasLifecycleMonitor.m:175)
24 UIKit 0x18dd11dd0 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160 (_UICanvas.m:591)
25 UIKit 0x18dd11c6c -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240 (_UICanvasLifecycleMonitor.m:153)
26 UIKit 0x18dd10afc -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 724 (_UICanvasLifecycleMonitor.m:229)
27 UIKit 0x18e9a684c __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296 (_UIApplicationCanvas.m:0)
28 UIKit 0x18dd101ec -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432 (_UIApplicationCanvas.m:156)
29 UIKit 0x18e78bac8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220 (_UICanvasLifecycleSettingsDiffAction.m:211)
30 UIKit 0x18e8d9bf8 _performActionsWithDelayForTransitionContext + 112 (_UICanvasSettingsDiffAction.m:34)
31 UIKit 0x18dd0fc0c -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248 (_UICanvasLifecycleSettingsDiffAction.m:182)
32 UIKit 0x18dd0f5a8 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368 (_UICanvas.m:517)
33 UIKit 0x18dd0c5e0 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540 (UIApplication.m:3109)
34 UIKit 0x18dd0c330 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364 (UIApplicationSceneClientAgent.m:41)
35 FrontBoardServices 0x186938470 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364 (FBSSceneImpl.m:460)
36 FrontBoardServices 0x186940d6c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224 (FBSWorkspace.m:606)
37 libdispatch.dylib 0x183a28a60 _dispatch_client_callout + 16 (object.m:507)
38 libdispatch.dylib 0x183a30170 _dispatch_block_invoke_direct$VARIANT$mp + 224 (queue.c:3018)
39 FrontBoardServices 0x18696c878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:164)
40 FrontBoardServices 0x18696c51c -[FBSSerialQueue _performNext] + 404 (FBSSerialQueue.m:196)
41 FrontBoardServices 0x18696cab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:232)
42 CoreFoundation 0x1840df404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1982)
43 CoreFoundation 0x1840dec2c __CFRunLoopDoSources0 + 276 (CFRunLoop.c:2017)
44 CoreFoundation 0x1840dc79c __CFRunLoopRun + 1204 (CFRunLoop.c:2920)
45 CoreFoundation 0x183ffcda8 CFRunLoopRunSpecific + 552 (CFRunLoop.c:3245)
46 GraphicsServices 0x185fe2020 GSEventRunModal + 100 (GSEvent.c:2245)
47 UIKit 0x18e01c758 UIApplicationMain + 236 (UIApplication.m:3965)
48 Visits 0x1007a589c main + 56 (Location+CoreDataClass.swift:15)
49 libdyld.dylib 0x183a8dfc0 start + 4
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000183bbd2e0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000183d5e288 pthread_kill$VARIANT$mp + 376 (pthread.c:1484)
2 libsystem_c.dylib 0x0000000183b2bd0c abort + 140 (abort.c:91)
3 libc++abi.dylib 0x00000001832c72c8 abort_message + 132 (abort_message.cpp:75)
4 libc++abi.dylib 0x00000001832c7470 default_terminate_handler() + 304 (cxa_default_handlers.cpp:68)
5 libobjc.A.dylib 0x00000001832f08d4 _objc_terminate() + 124 (objc-exception.mm:657)
6 libc++abi.dylib 0x00000001832e137c std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:66)
7 libc++abi.dylib 0x00000001832e1400 std::terminate() + 84 (cxa_handlers.cpp:97)
8 libdispatch.dylib 0x0000000183a28a74 _dispatch_client_callout + 36 (object.m:510)
9 libdispatch.dylib 0x0000000183a30170 _dispatch_block_invoke_direct$VARIANT$mp + 224 (queue.c:3018)
10 FrontBoardServices 0x000000018696c878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:164)
11 FrontBoardServices 0x000000018696c51c -[FBSSerialQueue _performNext] + 404 (FBSSerialQueue.m:196)
12 FrontBoardServices 0x000000018696cab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:232)
13 CoreFoundation 0x00000001840df404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1982)
14 CoreFoundation 0x00000001840dec2c __CFRunLoopDoSources0 + 276 (CFRunLoop.c:2017)
15 CoreFoundation 0x00000001840dc79c __CFRunLoopRun + 1204 (CFRunLoop.c:2920)
16 CoreFoundation 0x0000000183ffcda8 CFRunLoopRunSpecific + 552 (CFRunLoop.c:3245)
17 GraphicsServices 0x0000000185fe2020 GSEventRunModal + 100 (GSEvent.c:2245)
18 UIKit 0x000000018e01c758 UIApplicationMain + 236 (UIApplication.m:3965)
19 Visits 0x00000001007a589c main + 56 (Location+CoreDataClass.swift:15)
20 libdyld.dylib 0x0000000183a8dfc0 start + 4
Following is the code snippet where the program crashes. The crash happens at the self.view.layoutIfNeeded().
func initialSetupForScreen(){
let screenHeight = UIScreen.main.bounds.height
let statusBarHeight = UIApplication.shared.statusBarFrame.height
fullyOpenSheetTop = -(screenHeight - (statusBarHeight * 2))
partiallyOpenSheetTop = -((screenHeight * 0.50) - titleBarHeight)
closedSheetTop = -titleBarHeight
notVisibleSheetTop = 40 //(+40 for iphone X)
fullyOrPartiallyThreshold = (fullyOpenSheetTop + partiallyOpenSheetTop)/2
partiallyOrClosedThreshold = (partiallyOpenSheetTop + closedSheetTop)/2
// set primary & secondary sheet height //(+40 for iphone X) (-40 fixed for iphone X)
primarySheetViewHeightConstraint.constant = -fullyOpenSheetTop
secondarySheetViewHeightConstraint.constant = -fullyOpenSheetTop
// primary sheet is set to fully open state
primarySheetViewTopConstraint.constant = fullyOpenSheetTop
primarySheetCurrentState = .fullyOpen
// secondary sheet is set to not visible state
secondarySheetViewTopConstraint.constant = notVisibleSheetTop
secondarySheetCurrentState = .notVisible
// settings View move it out of screen
settingsViewTopConstraint.constant = notVisibleSheetTop
primarySheetController.configurePrimarySheetContentView()
self.view.layoutIfNeeded()
}
Earlier, I was calling this function inside my viewDidLoad. I thought it was too early to call layoutIfNeeded inside viewDidLoad. So I moved the function to viewWillAppear. However, the crashes still seem to be happening . What am I missing/overseeing?
The crash is happening across very few devices and I'm not able to reproduce it.
While testing on device (Apple Watch) attempting to save an HKWorkout into HealthKit I am adding samples of distance samples, calories, heart rates and vo2Max to the workout. Unfortunately unlike this question I am not getting as detailed as a trace back...as far as I can tell it's crashing on adding a sample but I can't tell which sample it is or why?
Code:
private func addSamples(toWorkout workout: HKWorkout, from startDate: Date, to endDate: Date, handler: #escaping (Bool, Error?) -> Void) {
let vo2MaxSample = HKQuantitySample(type: HKQuantityType.quantityType(forIdentifier: HKQuantityTypeIdentifier.vo2Max)!, quantity: vo2MaxQuantity(), start: startDate, end: endDate)
var samples = [HKQuantitySample]()
for distanceWalkingRunningSample in distanceWalkingRunningSamples {
samples.append(distanceWalkingRunningSample)
}
for energySample in energySamples {
samples.append(energySample)
}
samples.append(vo2MaxSample)
samples.append(contentsOf: heartRateValues)
// Add samples to workout
healthStore.add(samples, to: workout) { (success: Bool, error: Error?) in
if error != nil {
print("Adding workout subsamples failed with error: \(String(describing: error))")
handler(false, error)
}
if success {
print("Success, samples have been added, workout Saved.") //WorkoutStartDate = \(workout.startDate) WorkoutEndDate = \(workout.endDate)
handler(true, nil)
} else {
print("Adding workout subsamples failed no error reported")
handler(false, nil)
}
}
}
Trace:
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 0x1bdf75e8 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x1b15717c objc_exception_throw + 33
2 CoreFoundation 0x1bdf752c +[NSException raise:format:] + 103
3 HealthKit 0x273dbdde -[HKObject _validateForCreation] + 111
4 HealthKit 0x273dbc48 +[HKObject _newDataObjectWithMetadata:device:config:] + 219
5 HealthKit 0x273dbb30 +[HKSample _newSampleWithType:startDate:endDate:device:metadata:config:] + 159
6 HealthKit 0x273e9ba8 +[HKWorkout _workoutWithActivityType:startDate:endDate:workoutEvents:duration:totalActiveEnergyBurned:totalBasalEnergyBurned:totalDistance:totalSwimmingStrokeCount:totalFlightsClimbed:goalType:goal:device:metadata:config:] + 431
7 HealthKit 0x274a9342 +[HKWorkout workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:device:metadata:] + 109
8 HealthKit 0x274a9160 +[HKWorkout workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:metadata:] + 87
9 Watch Extension 0x002b7ecc 0x290000 + 163532
10 Watch Extension 0x002b79fc 0x290000 + 162300
11 Watch Extension 0x002bb7ac 0x290000 + 178092
12 Watch Extension 0x002ab9e8 0x290000 + 113128
13 Watch Extension 0x002a9660 0x290000 + 104032
14 Watch Extension 0x002a8f68 0x290000 + 102248
15 Watch Extension 0x002a7748 0x290000 + 96072
16 libdispatch.dylib 0x1b8875ec _dispatch_call_block_and_release + 5
17 libdispatch.dylib 0x1b8875c8 _dispatch_client_callout + 1
18 libdispatch.dylib 0x1b897822 _dispatch_main_queue_callback_4CF$VARIANT$mp + 853
19 CoreFoundation 0x1bdb31ac __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 5
20 CoreFoundation 0x1bdb0f42 __CFRunLoopRun + 929
21 CoreFoundation 0x1bcfe96a CFRunLoopRunSpecific + 349
22 GraphicsServices 0x1d8beb92 GSEventRunModal + 89
23 UIKit 0x21f556da UIApplicationMain + 151
24 libxpc.dylib 0x1bb2fd78 _xpc_objc_main + 581
25 libxpc.dylib 0x1bb31720 xpc_main + 149
26 Foundation 0x1c7bbf24 -[NSXPCListener resume] + 175
27 PlugInKit 0x22ccbf40 -[PKService run] + 709
28 WatchKit 0x2b5777b8 main + 157
29 libdyld.dylib 0x1b8e2b8e 0x1b8df000 + 15246
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1b9e443c __pthread_kill + 8
1 libsystem_pthread.dylib 0x1baec270 pthread_kill$VARIANT$mp + 334
2 libsystem_c.dylib 0x1b96d28e abort + 106
3 libc++abi.dylib 0x1b136cfe __cxa_bad_cast + 0
4 libc++abi.dylib 0x1b136e8a default_unexpected_handler+ 16010 () + 0
5 libobjc.A.dylib 0x1b1573e0 _objc_terminate+ 29664 () + 102
6 libc++abi.dylib 0x1b1493fc std::__terminate(void (*)+ 91132 ()) + 6
7 libc++abi.dylib 0x1b148ed6 __cxxabiv1::exception_cleanup_func+ 89814 (_Unwind_Reason_Code, _Unwind_Exception*) + 0
8 libobjc.A.dylib 0x1b157274 _objc_exception_destructor+ 29300 (void*) + 0
9 CoreFoundation 0x1bdf7530 -[NSException initWithCoder:] + 0
10 HealthKit 0x273dbde2 -[HKObject _validateForCreation] + 116
11 HealthKit 0x273dbc4c +[HKObject _newDataObjectWithMetadata:device:config:] + 224
12 HealthKit 0x273dbb34 +[HKSample _newSampleWithType:startDate:endDate:device:metadata:config:] + 164
13 HealthKit 0x273e9bac +[HKWorkout _workoutWithActivityType:startDate:endDate:workoutEvents:duration:totalActiveEnergyBurned:totalBasalEnergyBurned:totalDistance:totalSwimmingStrokeCount:totalFlightsClimbed:goalType:goal:device:metadata:config:] + 436
14 HealthKit 0x274a9346 +[HKWorkout workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:device:metadata:] + 114
15 HealthKit 0x274a9164 +[HKWorkout workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:metadata:] + 92
16 Watch Extension 0x002b7ed0 0x290000 + 163536
17 Watch Extension 0x002b7a00 0x290000 + 162304
18 Watch Extension 0x002bb7b0 0x290000 + 178096
19 Watch Extension 0x002ab9ec 0x290000 + 113132
20 Watch Extension 0x002a9664 0x290000 + 104036
21 Watch Extension 0x002a8f6c 0x290000 + 102252
22 Watch Extension 0x002a774c 0x290000 + 96076
23 libdispatch.dylib 0x1b8875f0 _dispatch_call_block_and_release + 10
24 libdispatch.dylib 0x1b8875cc _dispatch_client_callout + 6
25 libdispatch.dylib 0x1b897826 _dispatch_main_queue_callback_4CF$VARIANT$mp + 858
26 CoreFoundation 0x1bdb31b0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 10
27 CoreFoundation 0x1bdb0f46 __CFRunLoopRun + 934
28 CoreFoundation 0x1bcfe96e CFRunLoopRunSpecific + 354
29 GraphicsServices 0x1d8beb96 GSEventRunModal + 94
30 UIKit 0x21f556de UIApplicationMain + 156
31 libxpc.dylib 0x1bb2fd7c _xpc_objc_main + 586
32 libxpc.dylib 0x1bb31724 xpc_main + 154
33 Foundation 0x1c7bbf28 service_connection_handler + 0
34 PlugInKit 0x22ccbf44 -[PKService run] + 714
35 WatchKit 0x2b5777bc main + 162
36 libdyld.dylib 0x1b8e2b92 start + 2
My iOS6 app is crashing when compiled and run in release mode, please see crash report below:
Incident Identifier: 0267EA79-BAAB-4559-90FB-9ED8C268EB19
CrashReporter Key: 7b2d29f7c42065db47d89a8b3ae1056cf45f7d95
Hardware Model: iPhone5,2
Process: Instant Santa [5814]
Path: /var/mobile/Applications/B303BD19-177E-4DBB-A7C2-89BBF3331818/Instant Santa.app/Instant Santa
Identifier: Instant Santa
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-11-10 22:30:34.889 -0600
OS Version: iOS 6.0.1 (10A525)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3a6eb3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3974495e objc_exception_throw + 26
2 CoreFoundation 0x3a6eb302 +[NSException raise:format:] + 102
3 Instant Santa 0x001196aa -[PLCrashReporter enableCrashReporterAndReturnError:] + 82
4 Instant Santa 0x000b1064 -[BWQuincyManager init] (BWQuincyManager.m:182)
5 Instant Santa 0x000b0c00 __38+[BWQuincyManager sharedQuincyManager]_block_invoke_0 (BWQuincyManager.m:107)
6 libdispatch.dylib 0x334d35d6 _dispatch_client_callout + 18
7 libdispatch.dylib 0x334d4586 dispatch_once_f + 42
8 Instant Santa 0x000b0bc0 +[BWQuincyManager sharedQuincyManager] (once.h:68)
9 Instant Santa 0x0009f9a2 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:51)
10 UIKit 0x33f5ba74 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
11 UIKit 0x33f5b5f8 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
12 UIKit 0x33f53806 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
13 UIKit 0x33efbcea -[UIApplication handleEvent:withNewEvent:] + 1006
14 UIKit 0x33efb778 -[UIApplication sendEvent:] + 68
15 UIKit 0x33efb1ba _UIApplicationHandleEvent + 6194
16 GraphicsServices 0x3a78f5f2 _PurpleEventCallback + 586
17 GraphicsServices 0x3a78f222 PurpleEventCallback + 30
18 CoreFoundation 0x3a6c03e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
19 CoreFoundation 0x3a6c0386 __CFRunLoopDoSource1 + 134
20 CoreFoundation 0x3a6bf20a __CFRunLoopRun + 1378
21 CoreFoundation 0x3a632238 CFRunLoopRunSpecific + 352
22 CoreFoundation 0x3a6320c4 CFRunLoopRunInMode + 100
23 UIKit 0x33f52440 -[UIApplication _run] + 664
24 UIKit 0x33f4f28c UIApplicationMain + 1116
25 Instant Santa 0x0009f73e main (main.m:16)
26 Instant Santa 0x0009f6f4 start + 36
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3a455350 __pthread_kill + 8
1 libsystem_c.dylib 0x339edfb2 pthread_kill + 54
2 libsystem_c.dylib 0x33a2a366 abort + 90
3 Instant Santa 0x00119912 uncaught_exception_handler + 22
4 CoreFoundation 0x3a6eb6cc __handleUncaughtException + 624
5 libobjc.A.dylib 0x39744a46 _objc_terminate() + 126
6 libc++abi.dylib 0x33ae3118 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x33ae31b0 std::terminate() + 16
8 libc++abi.dylib 0x33ae459a __cxa_throw + 118
9 libobjc.A.dylib 0x3974499e objc_exception_throw + 90
10 CoreFoundation 0x3a6eb302 +[NSException raise:format:] + 102
11 Instant Santa 0x001196aa -[PLCrashReporter enableCrashReporterAndReturnError:] + 82
12 Instant Santa 0x000b1064 -[BWQuincyManager init] (BWQuincyManager.m:182)
13 Instant Santa 0x000b0c00 __38+[BWQuincyManager sharedQuincyManager]_block_invoke_0 (BWQuincyManager.m:107)
14 libdispatch.dylib 0x334d35d8 _dispatch_client_callout + 20
15 libdispatch.dylib 0x334d4586 dispatch_once_f + 42
16 Instant Santa 0x000b0bc0 +[BWQuincyManager sharedQuincyManager] (once.h:68)
17 Instant Santa 0x0009f9a2 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:51)
18 UIKit 0x33f5ba74 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
19 UIKit 0x33f5b5f8 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
20 UIKit 0x33f53806 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
21 UIKit 0x33efbcea -[UIApplication handleEvent:withNewEvent:] + 1006
22 UIKit 0x33efb778 -[UIApplication sendEvent:] + 68
23 UIKit 0x33efb1ba _UIApplicationHandleEvent + 6194
24 GraphicsServices 0x3a78f5f4 _PurpleEventCallback + 588
25 GraphicsServices 0x3a78f222 PurpleEventCallback + 30
26 CoreFoundation 0x3a6c03e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
27 CoreFoundation 0x3a6c0386 __CFRunLoopDoSource1 + 134
28 CoreFoundation 0x3a6bf20a __CFRunLoopRun + 1378
29 CoreFoundation 0x3a632238 CFRunLoopRunSpecific + 352
30 CoreFoundation 0x3a6320c4 CFRunLoopRunInMode + 100
31 UIKit 0x33f52440 -[UIApplication _run] + 664
32 UIKit 0x33f4f28c UIApplicationMain + 1116
33 Instant Santa 0x0009f73e main (main.m:16)
34 Instant Santa 0x0009f6f4 start + 36
Any help would be appreciated!
This happens if PLCrashReporter is already initialized before QuincyKit initializes it. Are you initializing PLCrashReporter yourself or is there any other framework installed that uses PLCrashReporter?
This is the exception that is being raised and causes the crash: https://github.com/bitstadium/PLCrashReporter/blob/master/Source/PLCrashReporter.m#L296
Nevermind, you don't need CrashReporter.framework with the new HockeySDK, see here: http://support.hockeyapp.net/kb/client-integration/migrate-from-hockeykit-quincykit-to-hockeysdk-for-ios