AppName denotes the application name.
User reported this crash. It only came once and also not able to reproduce the same on my end. Hence not able to debug. If some one can provide some insight for the same.
Below is the Crashlytics log received.
# OS Version: 12.4.2 (16G114)
# Device: iPhone 5s
# RAM Free: 8.5%
# Disk Free: 9.6%
#0. Crashed: com.twitter.crashlytics.ios.exception
0 App Name 0x100df7388 CLSProcessRecordAllThreads + 376 (CLSProcess.c:376)
1 App Name 0x100df7770 CLSProcessRecordAllThreads + 407 (CLSProcess.c:407)
2 App Name 0x100de7474 CLSHandler + 26 (CLSHandler.m:26)
3 App Name 0x100df599c __CLSExceptionRecord_block_invoke + 198 (CLSException.mm:198)
4 libdispatch.dylib 0x1db6217d4 _dispatch_client_callout + 16
5 libdispatch.dylib 0x1db5cfc1c _dispatch_lane_barrier_sync_invoke_and_complete + 56
6 App Name 0x100df5444 CLSExceptionRecord + 205 (CLSException.mm:205)
7 App Name 0x100df5278 CLSExceptionRecordNSException + 102 (CLSException.mm:102)
8 App Name 0x100df4e9c CLSTerminateHandler() + 258 (CLSException.mm:258)
9 libc++abi.dylib 0x1dadb0838 std::__terminate(void (*)()) + 16
10 libc++abi.dylib 0x1dadb0434 __cxa_rethrow + 144
11 libobjc.A.dylib 0x1dadbbbc8 objc_exception_rethrow + 44
12 CoreFoundation 0x1dbb72030 CFRunLoopRunSpecific + 544
13 GraphicsServices 0x1ddd7379c GSEventRunModal + 104
14 UIKitCore 0x2084f3c38 UIApplicationMain + 212
15 App Name 0x100c1ee1c main + 23 (ViewController.swift:23)
16 libdyld.dylib 0x1db6328e0 start + 4
--
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x1dbbe6190 __exceptionPreprocess
1 libobjc.A.dylib 0x1dadbb9f8 objc_exception_throw
2 CoreFoundation 0x1dbaf03b0 -[NSCache init]
3 CFNetwork 0x1dc3f4b58 -[NSURLSessionTask cancel]
4 App Name 0x100cb9fec ViewController.switchChanged(_:) (ViewController.swift)
5 App Name 0x100cbac7c #objc ViewController.switchChanged(_:) (<compiler-generated>)
6 UIKitCore 0x2084f5300 -[UIApplication sendAction:to:from:forEvent:]
7 UIKitCore 0x207f9e424 -[UIControl sendAction:to:forEvent:]
8 UIKitCore 0x207f9e744 -[UIControl _sendActionsForEvents:withEvent:]
9 UIKitCore 0x207fcb0fc -[UISwitchModernVisualElement sendStateChangeActions]
10 UIKitCore 0x207fcaa04 -[UISwitchMVEGestureTrackingSession _sendStateChangeActionsIfNecessary]
11 UIKitCore 0x207fcb7a4 -[UISwitchModernVisualElement _handleLongPressWithGestureLocationInBounds:gestureState:]
12 UIKitCore 0x20811cac4 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]
13 UIKitCore 0x208124ccc _UIGestureRecognizerSendTargetActions
14 UIKitCore 0x208122670 _UIGestureRecognizerSendActions
15 UIKitCore 0x208121b9c -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]
16 UIKitCore 0x208115c78 _UIGestureEnvironmentUpdate
17 UIKitCore 0x2081153a8 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
18 UIKitCore 0x208115188 -[UIGestureEnvironment _updateForEvent:window:]
19 UIKitCore 0x20852d7d0 -[UIWindow sendEvent:]
20 UIKitCore 0x20850d85c -[UIApplication sendEvent:]
21 UIKitCore 0x2085d39d4 __dispatchPreprocessedEventFromEventQueue
22 UIKitCore 0x2085d6100 __handleEventQueueInternal
23 UIKitCore 0x2085cf330 __handleHIDEventFetcherDrain
24 CoreFoundation 0x1dbb77f2c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
25 CoreFoundation 0x1dbb77eac __CFRunLoopDoSource0
26 CoreFoundation 0x1dbb77794 __CFRunLoopDoSources0
27 CoreFoundation 0x1dbb726d0 __CFRunLoopRun
28 CoreFoundation 0x1dbb71fc4 CFRunLoopRunSpecific
29 GraphicsServices 0x1ddd7379c GSEventRunModal
30 UIKitCore 0x2084f3c38 UIApplicationMain
31 App Name 0x100c1ee1c main + 23 (ViewController.swift:23)
32 libdyld.dylib 0x1db6328e0 start
Below is some part of code which may give more clear picture.
case .SettingsCell:
let cell: SettingsCell = tableView.dequeueReusableCell(withIdentifier: "SettingsCell") as! SettingsCell
cell.selectionStyle = .none
cell.switchOnOff.addTarget(self, action: #selector(switchChanged(_ :)), for: .valueChanged)
Below is the function called on UISwitch button value change.
case 13:
if sender.isOn{
UserDefaultUtility.saveToUserDefault(value: true, key: Constant.UserDefaults.k_IsAnimation)
appDelegate.getPollutantAbbreviationAndGIFImages()
} else {
let networkManager = NetworkManager()
networkManager.cancelImageDownloadTask()
}
Below is the function in Network Manager:
func cancelImageDownloadTask() {
self.downloadImagesSession?.cancel()
}
Download session is URLSessionDownloadTask object declared below.
weak var downloadImagesSession: URLSessionDownloadTask?
It is allocated using below code.
self.downloadImagesSession = session.downloadTask(with: request) { (tempLocalUrl, response, error) in
}
That seems to be the problem:
let networkManager = NetworkManager()
networkManager.cancelImageDownloadTask()
You just initialize a NetworkManager instance, and then directly try to cancel a task. But you cannot cancel a task which isn't started yet
Related
My app is crashing when i paste some copied text in UITextView. This crash occurs only on iOS15
0 CoreFoundation 0x00007fff203feba4 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201a1be7 objc_exception_throw + 48
2 Foundation 0x00007fff20753aa2 _userInfoForFileAndLine + 0
3 UIKitCore 0x00007fff254164a5 -[_UITextKitTextPosition compare:] + 235
4 UIKitCore 0x00007fff254097b4 -[UITextInputController comparePosition:toPosition:] + 85
5 UIKitCore 0x00007fff2542ac7d -[UITextView comparePosition:toPosition:] + 85
6 UIKitCore 0x00007fff253d0251 -[UITextPasteController _clampRange:] + 634
7 UIKitCore 0x00007fff253d09c4 __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke + 40
8 UIKitCore 0x00007fff253d0bcc __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke.174 + 184
9 UIKitCore 0x00007fff25412629 -[UITextInputController _pasteAttributedString:toRange:completion:] + 471
10 UIKitCore 0x00007fff253d092a -[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:] + 726
11 UIKitCore 0x00007fff253cfc07 __49-[UITextPasteController _executePasteForSession:]_block_invoke + 299
12 libdispatch.dylib 0x00007fff2011265a _dispatch_call_block_and_release + 12
13 libdispatch.dylib 0x00007fff2011383a _dispatch_client_callout + 8
14 libdispatch.dylib 0x00007fff20120c88 _dispatch_main_queue_callback_4CF + 1075
15 CoreFoundation 0x00007fff2036c84d __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
16 CoreFoundation 0x00007fff203670aa __CFRunLoopRun + 2772
17 CoreFoundation 0x00007fff203660f3 CFRunLoopRunSpecific + 567
18 GraphicsServices 0x00007fff2c995cd3 GSEventRunModal + 139
19 UIKitCore 0x00007fff25059f42 -[UIApplication _run] + 928
20 UIKitCore 0x00007fff2505eb5e UIApplicationMain + 101
Conform your view controller to UITextPasteDelegate:
class viewController: UIViewController, UITextPasteDelegate { ...
And set past delagete:
textView.pasteDelegate = self
Then implement textPasteConfigurationSupporting function:
func textPasteConfigurationSupporting(
_ textPasteConfigurationSupporting: UITextPasteConfigurationSupporting,
performPasteOf attributedString: NSAttributedString,
to textRange: UITextRange)
-> UITextRange {
<#code#>
}
I found a possible solution that worked for me. If you use UITextView within a table view and you also implemented prepareForReuse for a cell which contains UITextView. Make sure you set the UITextView.text value to nil in prepareForReuse. In my case I did that later (not in prepareForReuse) and this somehow caused some inconsistency issues regarding "pos" when pasting leading to a crash.
This crash maybe cased by copy and paste. Only iOS 15 has this problem.
CrashDoctor Diagnosis: Application threw exception NSInternalInconsistencyException: Invalid parameter not satisfying: pos
Thread 0 Crashed:
0 CoreFoundation 0x00000001814a50fc __exceptionPreprocess
1 libobjc.A.dylib 0x0000000199ce0d64 objc_exception_throw
2 Foundation 0x0000000182d5f3ac _userInfoForFileAndLine
3 UIKitCore 0x0000000184a4da50 -[_UITextKitTextPosition compare:]
4 UIKitCore 0x00000001838d4d68 -[UITextInputController comparePosition:toPosition:]
5 UIKitCore 0x0000000184a59328 -[UITextView comparePosition:toPosition:]
6 UIKitCore 0x0000000184a21658 -[UITextPasteController _clampRange:]
7 UIKitCore 0x0000000184a21e4c __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke
8 UIKitCore 0x0000000184a22064 __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke.177
9 UIKitCore 0x0000000184a49b9c -[UITextInputController _pasteAttributedString:toRange:completion:]
10 UIKitCore 0x0000000184a21d94 -[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]
11 UIKitCore 0x0000000184a21030 __49-[UITextPasteController _executePasteForSession:]_block_invoke
12 libdispatch.dylib 0x0000000181115924 _dispatch_call_block_and_release
13 libdispatch.dylib 0x0000000181117670 _dispatch_client_callout
14 libdispatch.dylib 0x0000000181125b70 _dispatch_main_queue_callback_4CF
15 CoreFoundation 0x000000018145dd84 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation 0x0000000181417f5c __CFRunLoopRun
17 CoreFoundation 0x000000018142b468 CFRunLoopRunSpecific
18 GraphicsServices 0x000000019cfb738c GSEventRunModal
19 UIKitCore 0x0000000183dcd088 -[UIApplication _run]
20 UIKitCore 0x0000000183b4b958 UIApplicationMain
21 GalaxyX 0x0000000102f2d67c main + [main.m : 19]
I have uploaded an iOS app on the app store. The development build is working perfectly fine and there was no error while debugging the same app in Xcode.
But when the app is live on the app store and the user installs the app from AppStore then the app crashes on tap on the search button.
Below is a screenshot of the crash log:
Launch Time: 2020-04-25 21:51:43.9128 +0530
OS Version: iPhone OS 13.3.1 (17D50)
Release Type: User
Baseband Version: 1.04.06
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 0x1aa46896c __exceptionPreprocess + 224
1 libobjc.A.dylib 0x1aa181028 objc_exception_throw + 59
2 CoreFoundation 0x1aa35814c +[NSException raise:format:] + 111
3 UIKitCore 0x1aded63f4 UISearchDisplayControllerNoLongerSupported + 215
4 UIKitCore 0x1aded66dc -[UISearchDisplayController initWithCoder:] + 87
5 UIFoundation 0x1adab024c UINibDecoderDecodeObjectForValue + 731
6 UIFoundation 0x1adab0480 UINibDecoderDecodeObjectForValue + 1295
7 UIFoundation 0x1ada4b00c -[UINibDecoder decodeObjectForKey:] + 319
8 UIKitCore 0x1adf1f73c -[UIViewController initWithCoder:] + 1039
9 Rmag.eu 0x102a1b420 0x102954000 + 816160
10 Rmag.eu 0x102a14eb0 0x102954000 + 790192
11 Rmag.eu 0x1029d8908 0x102954000 + 542984
12 Rmag.eu 0x1029d8638 0x102954000 + 542264
13 UIKitCore 0x1ae1f1818 -[UIClassSwapper initWithCoder:] + 2363
14 UIFoundation 0x1adab024c UINibDecoderDecodeObjectForValue + 731
15 UIFoundation 0x1ada4b00c -[UINibDecoder decodeObjectForKey:] + 319
16 UIKitCore 0x1ae1f59c4 -[UIRuntimeConnection initWithCoder:] + 131
17 UIFoundation 0x1adab024c UINibDecoderDecodeObjectForValue + 731
18 UIFoundation 0x1adab0480 UINibDecoderDecodeObjectForValue + 1295
19 UIFoundation 0x1ada4b00c -[UINibDecoder decodeObjectForKey:] + 319
20 UIKitCore 0x1ae1f08f0 -[NSCoder+ 7121136 (UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 491
21 UIKitCore 0x1ae1f3528 -[UINib instantiateWithOwner:options:] + 1115
22 UIKitCore 0x1ae6c5cb0 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 291
23 Rmag.eu 0x102a1a320 0x102954000 + 811808
24 Rmag.eu 0x102a13d2c 0x102954000 + 785708
25 libobjc.A.dylib 0x1aa17ccc8 -[NSObject performSelector:withObject:withObject:] + 75
26 UIKitCore 0x1ae56a918 -[UIApplication sendAction:to:from:forEvent:] + 99
27 UIKitCore 0x1adf79380 -[UIControl sendAction:to:forEvent:] + 207
28 UIKitCore 0x1adf796f4 -[UIControl _sendActionsForEvents:withEvent:] + 411
29 UIKitCore 0x1adf78704 -[UIControl touchesEnded:withEvent:] + 523
30 UIKitCore 0x1ae5a578c -[UIWindow _sendTouchesForEvent:] + 2083
31 UIKitCore 0x1ae5a6a7c -[UIWindow sendEvent:] + 3335
32 UIKitCore 0x1ae582600 -[UIApplication sendEvent:] + 347
33 UIKitCore 0x1ae5fca58 __dispatchPreprocessedEventFromEventQueue + 5711
34 UIKitCore 0x1ae5ff010 __handleEventQueueInternal + 4927
35 UIKitCore 0x1ae5f8194 __handleHIDEventFetcherDrain + 111
36 CoreFoundation 0x1aa3e4108 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
37 CoreFoundation 0x1aa3e405c __CFRunLoopDoSource0 + 83
38 CoreFoundation 0x1aa3e37c8 __CFRunLoopDoSources0 + 183
39 CoreFoundation 0x1aa3de694 __CFRunLoopRun + 1067
40 CoreFoundation 0x1aa3ddf40 CFRunLoopRunSpecific + 479
41 GraphicsServices 0x1b466e534 GSEventRunModal + 107
42 UIKitCore 0x1ae569580 UIApplicationMain + 1939
43 Rmag.eu 0x102972a9c 0x102954000 + 125596
44 libdyld.dylib 0x1aa25ce18 start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001aa252efc __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001aa1728b8 pthread_kill + 228
2 libsystem_c.dylib 0x00000001aa102af4 __abort + 116
3 libsystem_c.dylib 0x00000001aa102a80 __abort + 0
4 libc++abi.dylib 0x00000001aa21a3c8 __cxa_bad_cast + 0
5 libc++abi.dylib 0x00000001aa21a5c0 demangling_unexpected_handler+ 5568 () + 0
6 libobjc.A.dylib 0x00000001aa181308 _objc_terminate+ 25352 () + 124
7 Rmag.eu 0x0000000102e95040 0x102954000 + 5509184
8 libc++abi.dylib 0x00000001aa227634 std::__terminate(void (*)+ 58932 ()) + 20
9 libc++abi.dylib 0x00000001aa2271ec __cxa_rethrow + 148
10 libobjc.A.dylib 0x00000001aa1811ec objc_exception_rethrow + 44
11 CoreFoundation 0x00000001aa3ddfb0 CFRunLoopRunSpecific + 592
12 GraphicsServices 0x00000001b466e534 GSEventRunModal + 108
13 UIKitCore 0x00000001ae569580 UIApplicationMain + 1940
14 Rmag.eu 0x0000000102972a9c 0x102954000 + 125596
15 libdyld.dylib 0x00000001aa25ce18 start + 4
According to me the app crashed because of error "UISearchDisplayControllerNoLongerSupported". But I am not using "UISearchDisplayController" anywhere in my app.
Below is a screenshot of the code
class SearchBarViewController: BaseViewController, UISearchBarDelegate{
var customTabBarView: CustomTabBar?
#IBOutlet weak var searchBar: UISearchBar!
var navController: UINavigationController?
Please help me to resolve the issue or how can I find the error in the code of the app.
Creating a new SearchBarViewController resolved the issue.
We have to remove the older SearchVar UIViewController from code.
In my app, I have a TestFlight beta. It loads fine, and all the buttons and actions work, except for clicking on one section of the TableView, when I click that, it crashes every time. But, only in TestFlight beta installs. On Xcode Simulator it runs fine, if debugging on my phone by plugging into computer and running, it works fine. When I open the crash log in Xcode, I get the image below, but it doesn't really tell me anything. Here is the crash log:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x195260164 __exceptionPreprocess + 228 (NSException.m:199)
1 libobjc.A.dylib 0x194f74c1c objc_exception_throw + 60 (objc-exception.mm:565)
2 CoreFoundation 0x19514fbb8 +[NSException raise:format:] + 112 (NSException.m:155)
3 UIKitCore 0x198cf0d14 -[UISearchDisplayController initWithCoder:] + 88 (UISearchDisplayController.m:350)
4 UIFoundation 0x1988c793c UINibDecoderDecodeObjectForValue + 728 (UINibDecoder.m:717)
5 UIFoundation 0x198862d50 -[UINibDecoder decodeObjectForKey:] + 312 (UINibDecoder.m:811)
6 UIKitCore 0x199029668 -[UIRuntimeConnection initWithCoder:] + 132 (UIRuntimeConnection.m:22)
7 UIFoundation 0x1988c793c UINibDecoderDecodeObjectForValue + 728 (UINibDecoder.m:717)
8 UIFoundation 0x1988c7b5c UINibDecoderDecodeObjectForValue + 1272 (UINibDecoder.m:611)
9 UIFoundation 0x198862d50 -[UINibDecoder decodeObjectForKey:] + 312 (UINibDecoder.m:811)
10 UIKitCore 0x199024638 -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:f... + 492 (UIClassSwapper.m:57)
11 UIKitCore 0x199027200 -[UINib instantiateWithOwner:options:] + 1068 (UINib.m:347)
12 UIKitCore 0x198d3dea4 -[UIViewController _loadViewFromNibNamed:bundle:] + 368 (UIViewController.m:3105)
13 UIKitCore 0x198d3e954 -[UIViewController loadView] + 180 (UIViewController.m:3247)
14 UIKitCore 0x198d3ec24 -[UIViewController loadViewIfRequired] + 188 (UIViewController.m:3346)
15 UIKitCore 0x198d3f30c -[UIViewController view] + 32 (UIViewController.m:3404)
16 UIKitCore 0x198c9afa4 -[UINavigationController _startCustomTransition:] + 1148 (UINavigationController.m:1893)
17 UIKitCore 0x198caf478 -[UINavigationController _startDeferredTransitionIfNeeded:] + 692 (UINavigationController.m:6719)
18 UIKitCore 0x198cb0818 -[UINavigationController __viewWillLayoutSubviews] + 176 (UINavigationController.m:6988)
19 UIKitCore 0x198c934fc -[UILayoutContainerView layoutSubviews] + 228 (UILayoutContainerView.m:86)
20 UIKitCore 0x1998766a0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2168 (UIView.m:17176)
21 QuartzCore 0x19bec94a0 -[CALayer layoutSublayers] + 292 (CALayer.mm:9644)
22 QuartzCore 0x19bec98e0 CA::Layer::layout_if_needed(CA::Transaction*) + 472 (CALayer.mm:9518)
23 QuartzCore 0x19bedbdc4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 144 (CALayer.mm:2468)
24 QuartzCore 0x19be20884 CA::Context::commit_transaction(CA::Transaction*, double) + 304 (CAContextInternal.mm:1992)
25 QuartzCore 0x19be4b3d0 CA::Transaction::commit() + 656 (CATransactionInternal.mm:438)
26 UIKitCore 0x1993d48cc _afterCACommitHandler + 144 (UIApplication.m:3120)
27 CoreFoundation 0x1951dac54 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 (CFRunLoop.c:1758)
28 CoreFoundation 0x1951d58e4 __CFRunLoopDoObservers + 420 (CFRunLoop.c:1868)
29 CoreFoundation 0x1951d5d84 __CFRunLoopRun + 1020 (CFRunLoop.c:2910)
30 CoreFoundation 0x1951d5660 CFRunLoopRunSpecific + 480 (CFRunLoop.c:3192)
31 GraphicsServices 0x19f5e6604 GSEventRunModal + 164 (GSEvent.c:2246)
32 UIKitCore 0x1993aa15c UIApplicationMain + 1944 (UIApplication.m:4820)
33 Ministry League 0x104093b48 main + 76 (main.m:16)
34 libdyld.dylib 0x1950511ec start + 4
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000195046df0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000194f66930 pthread_kill + 228 (pthread.c:1458)
2 libsystem_c.dylib 0x0000000194ef48b4 abort + 104 (abort.c:110)
3 libc++abi.dylib 0x0000000195019f40 abort_message + 132 (abort_message.cpp:76)
4 libc++abi.dylib 0x000000019500b8c8 demangling_terminate_handler() + 308 (cxa_default_handlers.cpp:65)
5 libobjc.A.dylib 0x0000000194f74f0c _objc_terminate() + 132 (objc-exception.mm:701)
6 libc++abi.dylib 0x00000001950193cc std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7 libc++abi.dylib 0x000000019501c154 __cxa_rethrow + 148 (cxa_exception.cpp:617)
8 libobjc.A.dylib 0x0000000194f74de8 objc_exception_rethrow + 44 (objc-exception.mm:604)
9 CoreFoundation 0x00000001951d56d0 CFRunLoopRunSpecific + 592 (CFRunLoop.c:3206)
10 GraphicsServices 0x000000019f5e6604 GSEventRunModal + 164 (GSEvent.c:2246)
11 UIKitCore 0x00000001993aa15c UIApplicationMain + 1944 (UIApplication.m:4820)
12 Ministry League 0x0000000104093b48 main + 76 (main.m:16)
13 libdyld.dylib 0x00000001950511ec start + 4
What this crash log tells me is that the app is loading a NIB that includes a UISearchDisplayController when it throws an exception. UISearchDisplayController is deprecated, and should be replaced with a UISearchController. The first thing I'd try is making that replacement.
I am using crashlytics in my app since it was part of Fabric. I would see the crash line and Class name. But now in Firebase, I don't see the line number causing the crash.
Here is the crash log:
Crashed: com.apple.main-thread
0 Haraj 0x100c1eb00 specialized GQLHelper.submitPost(post:onFinish:) + 4313017088 (<compiler-generated>:4313017088)
1 Haraj 0x100bb900c HJAdDetailsViewController.submitPost() + 4312600588 (<compiler-generated>:4312600588)
2 Haraj 0x100bbcc94 partial apply for closure #1 in HJAdDetailsViewController.setupPopOver() + 4312616084 (<compiler-generated>:4312616084)
3 Haraj 0x100c303f8 #objc HJAgreementsView.acceptButtonPressed(_:) + 4313089016
4 UIKitCore 0x1bef53a44 -[UIApplication sendAction:to:from:forEvent:] + 96
5 UIKitCore 0x1be9976d0 -[UIControl sendAction:to:forEvent:] + 240
6 UIKitCore 0x1be997a34 -[UIControl _sendActionsForEvents:withEvent:] + 408
7 UIKitCore 0x1be996a50 -[UIControl touchesEnded:withEvent:] + 520
8 UIKitCore 0x1bef8cd68 -[UIWindow _sendTouchesForEvent:] + 2324
9 UIKitCore 0x1bef8e0a8 -[UIWindow sendEvent:] + 3352
10 UIKitCore 0x1bef6aae8 -[UIApplication sendEvent:] + 336
11 UIKitCore 0x1befe223c __dispatchPreprocessedEventFromEventQueue + 5880
12 UIKitCore 0x1befe4798 __handleEventQueueInternal + 4924
13 UIKitCore 0x1befe4ae4 __handleEventQueueInternal + 5768
14 UIKitCore 0x1befdd60c __handleHIDEventFetcherDrain + 108
15 CoreFoundation 0x1baec27e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
16 CoreFoundation 0x1baec2738 __CFRunLoopDoSource0 + 80
17 CoreFoundation 0x1baec1ed0 __CFRunLoopDoSources0 + 180
18 CoreFoundation 0x1baebd01c __CFRunLoopRun + 1080
19 CoreFoundation 0x1baebc8bc CFRunLoopRunSpecific + 464
20 GraphicsServices 0x1c4d28328 GSEventRunModal + 104
21 UIKitCore 0x1bef526d4 UIApplicationMain + 1936
22 Haraj 0x100a54ad8 main + 15 (main.m:15)
23 libdyld.dylib 0x1bad47460 start + 4
In here the crash seems to be coming from GQLHelper.submitPost(post:onFinish:) but the line number is invalid.
Any help? Has something got changed while moving from Fabric to Firebase?
In firebase, I don't see missing dSYMs for this particular release version.