I'm using WKWebView, when I try to insert any values in WebPage using HardWare KeyBoard app getting crashed. It's always crashing when i Press Shift + Any Other Key with my External KeyBoard.
Note:- i already tried webview.keyboardDisplayRequiresUserAction with true and false both
I already tried with following solutions but won't work for me
WKWebView crashes if user answers an incoming iMessage.
WKWebview with the new iOS13 modal crash when a file picker is invoked.
iOS11 WKWebview crash due to NSInvalidUnarchiveOperationException
Crash Log
2021-04-14 19:05:25.253969+0530 ZapDial[13417:318028] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23e3de6e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff512a19b2 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23ed09d1 _CFThrowFormattedException + 194
3 CoreFoundation 0x00007fff23edb426 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.4 + 38
4 CoreFoundation 0x00007fff23e9c6e7 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 247
5 CoreFoundation 0x00007fff23e39d71 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 UIAccessibility 0x00007fff4877c634 AXUIAutomationHandleKeyComplete + 200
7 WebKitLegacy 0x000000011c197592 sendNotificationAfterHandlingWebKeyEventIfNeeded + 144
8 WebKitLegacy 0x000000011c1974ee -[DOMNodeAccessibility handleKeyWebEvent:] + 72
9 CoreFoundation 0x00007fff23e44dec __invoking___ + 140
10 CoreFoundation 0x00007fff23e41fd1 -[NSInvocation invoke] + 321
11 CoreFoundation 0x00007fff23e422a4 -[NSInvocation invokeWithTarget:] + 68
12 UIKitCore 0x00007fff498c7b79 -[UIThreadSafeNode forwardInvocation:] + 92
13 CoreFoundation 0x00007fff23e42616 ___forwarding___ + 838
14 CoreFoundation 0x00007fff23e44b58 _CF_forwarding_prep_0 + 120
15 UIKitCore 0x00007fff49192ccb -[UIKeyboardImpl _handleWebKeyEvent:withEventType:withInputString:withInputStringIgnoringModifiers:executionContext:] + 635
16 UIKitCore 0x00007fff49194b14 -[UIKeyboardImpl handleModifiersChangeForKeyEvent:executionContext:] + 528
17 UIKitCore 0x00007fff491a965d -[UIKeyboardTaskEntry execute:] + 147
18 UIKitCore 0x00007fff491a8173 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 310
19 UIKitCore 0x00007fff49193ec6 -[UIKeyboardImpl handleKeyEvent:] + 201
20 CoreFoundation 0x00007fff23e44dec __invoking___ + 140
21 CoreFoundation 0x00007fff23e41fd1 -[NSInvocation invoke] + 321
22 UIKitCore 0x00007fff4971d9a1 -[UIRepeatedAction invoke] + 278
23 UIKitCore 0x00007fff4971dba1 -[UIRepeatedAction _preInvocationTimerFire] + 45
24 UIKitCore 0x00007fff4938d523 -[UIApplication _handleKeyboardPressEvent:] + 2214
25 UIKitCore 0x00007fff49377487 -[UIApplication pressesBegan:withEvent:] + 401
26 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
27 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
28 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
29 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
30 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
31 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
32 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
33 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
34 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
35 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
36 UIKitCore 0x00007fff48bf7489 -[UITabBarController pressesBegan:withEvent:] + 115
37 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
38 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
39 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
40 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
41 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
42 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
43 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
44 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
45 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
46 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
47 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
48 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
49 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
50 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
51 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
52 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
53 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
54 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
55 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
56 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
57 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
58 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
59 UIKitCore 0x00007fff493a045a forwardTouchMethod + 323
60 UIKitCore 0x00007fff493a4182 -[UIResponder pressesBegan:withEvent:] + 49
61 UIKitCore 0x00007fff493afde8 -[UIWindow _sendButtonsForEvent:] + 393
62 UIKitCore 0x00007fff493b0dbd -[UIWindow sendEvent:] + 3273
63 UIKitCore 0x00007fff4938b6cd -[UIApplication sendEvent:] + 356
64 UIKit 0x00000001140260b8 -[UIApplicationAccessibility sendEvent:] + 85
65 UIKitCore 0x00007fff4938c356 -[UIApplication _handleKeyUIEvent:] + 627
66 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
67 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
68 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
69 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
70 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
71 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
72 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
73 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
74 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
75 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
76 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
77 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
78 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
79 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
80 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
81 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
82 UIKitCore 0x00007fff493a3705 -[UIResponder _handleKeyUIEvent:] + 79
83 UIKitCore 0x00007fff4938c402 -[UIApplication handleKeyUIEvent:] + 79
84 UIKitCore 0x00007fff4938c0c2 -[UIApplication handleKeyHIDEvent:] + 535
85 UIKit 0x000000011401fb05 -[UIApplicationAccessibility handleKeyHIDEvent:] + 41
86 UIKitCore 0x00007fff49415781 __dispatchPreprocessedEventFromEventQueue + 4227
87 UIKitCore 0x00007fff4941968e __handleEventQueueInternal + 6584
88 UIKitCore 0x00007fff4940ff31 __handleHIDEventFetcherDrain + 88
89 CoreFoundation 0x00007fff23da1c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
90 CoreFoundation 0x00007fff23da1bbc __CFRunLoopDoSource0 + 76
91 CoreFoundation 0x00007fff23da1394 __CFRunLoopDoSources0 + 180
92 CoreFoundation 0x00007fff23d9bf8e __CFRunLoopRun + 974
93 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404
94 GraphicsServices 0x00007fff38c05bbe GSEventRunModal + 139
95 UIKitCore 0x00007fff49372964 UIApplicationMain + 1605
96 ZapDial 0x000000010c7fab2b main + 75
97 libdyld.dylib 0x00007fff5211c1fd start + 1
98 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Related
I’m having a crash happens when reloadData() gets called in a custom SelfSizedTableView ,
any idea why? and how to resolve it?
SelfSizedTableView:
import UIKit
open class SelfSizedTableView: UITableView {
open override func reloadData() {
super.reloadData()
self.invalidateIntrinsicContentSize()
self.layoutIfNeeded()
}
open override var intrinsicContentSize: CGSize {
setNeedsLayout()
layoutIfNeeded()
return CGSize(
width: contentSize.width,
height: contentSize.height
)
}
}
Stacktrace:
Crashed: com.apple.main-thread
0 CoreAutoLayout 0x17d38 object_table_insert_and_return_old_value_if_replaced + 96
1 CoreAutoLayout 0x8324 NSISObjectTableInsert + 72
2 CoreAutoLayout 0x80b0 -[NSISEngine startObservingChangesForVariable:] + 76
3 UIKitCore 0x373e2c _UILayoutItemSetUpVariableObservation + 144
4 UIKitCore 0x2aae18 _UILayoutItemCreateAndObserveVariableWithValueRestriction + 104
5 UIKitCore 0x518fc4 -[UIView nsli_boundsWidthVariable] + 48
6 UIKitCore 0x34b7e8 -[UIView(AdditionalLayoutSupport) nsli_lowerAttribute:intoExpression:withCoefficient:forConstraint:onBehalfOfLayoutGuide:] + 2860
7 UIKitCore 0x566e50 -[UIView(AdditionalLayoutSupport) nsli_lowerAttribute:intoExpression:withCoefficient:forConstraint:] + 316
8 CoreAutoLayout 0xbb50 -[NSLayoutConstraint _lowerIntoExpression:reportingConstantIsRounded:] + 76
9 CoreAutoLayout 0xdee8 -[NSLayoutConstraint _addToEngine:mutuallyExclusiveConstraints:] + 136
10 UIKitCore 0x1cd270 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 368
11 CoreAutoLayout 0x7bac -[NSISEngine withBehaviors:performModifications:] + 80
12 UIKitCore 0x1badd0 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 528
13 UIKitCore 0x3980f4 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 188
14 UIKitCore 0x1cd1b8 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 184
15 CoreAutoLayout 0x7bac -[NSISEngine withBehaviors:performModifications:] + 80
16 UIKitCore 0x1badd0 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 528
17 UIKitCore 0x3980f4 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 188
18 UIKitCore 0x1cd1b8 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 184
19 CoreAutoLayout 0x7bac -[NSISEngine withBehaviors:performModifications:] + 80
20 UIKitCore 0x1badd0 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 528
21 UIKitCore 0x3980f4 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 188
22 UIKitCore 0x45ae68 -[UIView(AdditionalLayoutSupport) _initializeHostedLayoutEngine] + 208
23 UIKitCore 0x1da868 -[UIView _layoutEngine_windowDidChange] + 120
24 UIKitCore 0x29ebbc -[UIView(Internal) _didMoveFromWindow:toWindow:] + 276
25 UIKitCore 0x29ee48 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 928
26 UIKitCore 0x1cb998 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 136
27 CoreAutoLayout 0x7bac -[NSISEngine withBehaviors:performModifications:] + 80
28 UIKitCore 0x2576e4 -[UIView(Hierarchy) _postMovedFromSuperview:] + 780
29 UIKitCore 0x179ca4 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 2148
30 UIKitCore 0x38ec30 -[UITableView _addSubview:positioned:relativeTo:] + 104
31 UIKitCore 0x168d68 -[UIScrollView _addContentSubview:atBack:] + 376
32 UIKitCore 0x18d4e8 -[UITableView _addContentSubview:atBack:] + 248
33 UIKitCore 0x189e70 __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke + 1744
34 UIKitCore 0x1632d0 +[UIView(Animation) performWithoutAnimation:] + 96
35 UIKitCore 0x3f4664 -[UITableView _configureCellForDisplay:forIndexPath:] + 244
36 UIKitCore 0x27010c -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1916
37 UIKitCore 0x45a858 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] + 700
38 UIKitCore 0x293f04 -[UITableView _updateVisibleCellsNow:] + 1464
39 UIKitCore 0x16c484 -[UITableView layoutSubviews] + 436
40 UIKitCore 0x17c1d0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2556
41 QuartzCore 0x3d520 CA::Layer::layout_if_needed(CA::Transaction*) + 528
42 UIKitCore 0x1dd8b0 -[UIView(Hierarchy) layoutBelowIfNeeded] + 556
43 Drops 0x78e68 SelfSizedTableView.reloadData() + 15 (SelfSizedTableView.swift:15)
44 Drops 0x78eb8 #objc SelfSizedTableView.reloadData() + 4365668024 (<compiler-generated>:4365668024)
45 UIKitCore 0x16c300 -[UITableView layoutSubviews] + 48
46 UIKitCore 0x17c1d0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2556
47 QuartzCore 0x3d520 CA::Layer::layout_if_needed(CA::Transaction*) + 528
48 UIKitCore 0x1dd8b0 -[UIView(Hierarchy) layoutBelowIfNeeded] + 556
49 Drops 0x78f6c SelfSizedTableView.intrinsicContentSize.getter + 19 (SelfSizedTableView.swift:19)
50 Drops 0x78ef4 #objc SelfSizedTableView.intrinsicContentSize.getter + 4365668084 (<compiler-generated>:4365668084)
51 UIKitCore 0x19cae8 -[UIView _generateContentSizeConstraints] + 56
52 UIKitCore 0x24beac -[UIView _updateContentSizeConstraints] + 268
53 UIKitCore 0x2f6440 -[UIView(AdditionalLayoutSupport) _updateSystemConstraints] + 124
54 UIKitCore 0x35aaac -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:] + 480
55 UIKitCore 0x17f5a0 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 996
56 UIKitCore 0x17f480 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 708
57 UIKitCore 0x17f480 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 708
58 CoreAutoLayout 0x7bac -[NSISEngine withBehaviors:performModifications:] + 80
59 UIKitCore 0x4f6720 -[UIView(AdditionalLayoutSupport) _recursiveUpdateConstraintsIfNeededCollectingViews:forSecondPass:] + 120
60 UIKitCore 0x17f480 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 708
61 UIKitCore 0x1e494c __100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke + 84
62 UIKitCore 0x25c954 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] + 160
63 UIKitCore 0x314fd8 -[UIView(AdditionalLayoutSupport) _systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:hasIntentionallyCollapsedHeight:] + 224
64 UIKitCore 0x272668 -[UITableViewCell systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:] + 656
65 UIKitCore 0x331148 -[UITableView _heightForCell:atIndexPath:] + 400
66 UIKitCore 0x18a120 __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke + 2432
67 UIKitCore 0x1632d0 +[UIView(Animation) performWithoutAnimation:] + 96
68 UIKitCore 0x3f4664 -[UITableView _configureCellForDisplay:forIndexPath:] + 244
69 UIKitCore 0x27010c -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1916
70 UIKitCore 0x44a10c -[UITableView _createPreparedCellForRowAtIndexPath:willDisplay:] + 88
71 UIKitCore 0x534d90 -[UITableView _heightForRowAtIndexPath:] + 152
72 UIKitCore 0x1cab54 -[UISectionRowData heightForRow:inSection:canGuess:] + 208
73 UIKitCore 0x16ee8c -[UITableViewRowData heightForRow:inSection:canGuess:adjustForReorderedRow:] + 252
74 UIKitCore 0x237c54 -[UITableViewRowData rectForRow:inSection:heightCanBeGuessed:] + 332
75 UIKitCore 0x16c890 -[UITableViewRowData rectForGlobalRow:heightCanBeGuessed:] + 108
76 UIKitCore 0x277eb0 -[UITableView _prefetchCellAtGlobalRow:aboveVisibleRange:] + 264
77 UIKitCore 0x1c52f4 __48-[UITableView _configureCellPrefetchingHandlers]_block_invoke + 56
78 UIKitCore 0x170804 -[_UITableViewPrefetchContext updateVisibleIndexRange:withContentOffset:] + 2392
79 UIKitCore 0x42db08 -[UITableView _updateCycleIdleUntil:] + 188
80 UIKitCore 0x17e2b8 ___UIUpdateCycleNotifyIdle_block_invoke + 704
81 libdispatch.dylib 0x63094 _dispatch_call_block_and_release + 24
82 libdispatch.dylib 0x64094 _dispatch_client_callout + 16
83 libdispatch.dylib 0x45858 _dispatch_main_queue_drain + 888
84 libdispatch.dylib 0x454d0 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
85 CoreFoundation 0x4e0d4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
86 CoreFoundation 0xb5f8 __CFRunLoopRun + 2544
87 CoreFoundation 0x1e250 CFRunLoopRunSpecific + 572
88 GraphicsServices 0x1988 GSEventRunModal + 160
89 UIKitCore 0x4e5a94 -[UIApplication _run] + 1080
90 UIKitCore 0x27efd4 UIApplicationMain + 336
91 libswiftUIKit.dylib 0x27ee4 UIApplicationMain(_:_:_:_:) + 100
92 Drops 0x1249a0 static UIApplicationDelegate.main() + 4366371232 (<compiler-generated>:4366371232)
93 Drops 0x124928 static AppDelegate.$main() + 25 (<compiler-generated>:25)
94 Drops 0x1263e8 main + 26 (AppDelegate.swift:26)
95 ??? 0x1036b44d0 (Missing)
Update your tableView in main thread. Ui should be always executed in main thread
DispatchQueue.main.async {
self.invalidateIntrinsicContentSize()
self.layoutIfNeeded()
}
I'm using this code to create top right bar button and perform a action in ios objective C.
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:#selector(addAppliance)];
self.navigationItem.rightBarButtonItem = anotherButton;
But showing this error
Terminating app due to uncaught exception 'NSInternalInconsistencyException',`reason: 'Unsupported style: 4'
First throw call stack:
(
0 CoreFoundation 0x00007fff23e3cf0e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50ba89b2 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23e3cc88
+[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff258b8bd2
-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
+ 191
4 UIKitCore
0x00007fff48d70f87 +[_UIBarButtonItemData standardItemDataForStyle:]
+ 539
5 UIKitCore
0x00007fff4828b26f -[_UIButtonBarButtonVisualProviderIOS _
computeTextAttributes] + 216
6 UIKitCore
0x00007fff4828b173 -[_UIButtonBarButtonVisual
ProviderIOS _computeTextAttributesForBarButtonItem:]
+ 371
7 UIKitCore
0x00007fff4828eef7 -[_UIButtonBarButtonVisual
ProviderIOS configureButton:fromBarButtonItem:] + 223
8 UIKitCore
0x00007fff4828ce8d -[_UIButtonBarButtonVisual
ProviderIOS configureButton:withAppearanceDelegate:fromBarItem:]
+ 114
9 UIKitCore
0x00007fff4828796f -
[_UIButtonBarButton _configureFromBarItem:appearanceDelegate
:isBackButton:] + 83
10 UIKitCore
0x00007fff4828750b -[_UIButtonBarButton configureFromBarItem:withAppearanceDelegate:] + 53
11 UIKitCore
0x00007fff48283a27 -[_UIButtonBar _updatedViewForBarButtonItem:withView:]
+ 456
12 UIKitCore
0x00007fff48281d02 __32-[_UIButtonBar _newGroupLayout:]_block_invoke + 82
13 UIKitCore
0x00007fff48291708 -[_UIButtonBarItemLayout _updateItemView] + 53
14 UIKitCore
0x00007fff48291ce9 -[_UIButtonBarItemLayout _configure] + 39
15 UIKitCore
0x00007fff482907a5 -[_UIButtonBarLayout configure] + 51
16 UIKitCore
0x00007fff48290908 -[_UIButtonBarLayout addLayoutViews:] + 49
17 UIKitCore
0x00007fff48293dd3 -[_UIButtonBarItemGroupLayout _iterateConfiguredLayouts:]
+ 228
18 UIKitCore
0x00007fff48293eaf -[_UIButtonBarItemGroupLayout _addLayoutViews:]
+ 111
19 UIKitCore
0x00007fff4829086c -
[_UIButtonBarLayout
addLayoutViews:layoutGuides:constraintsToActivate:
constraintsToDeactivate:] + 111
20 UIKitCore 0x00007fff48282424 -[_UIButtonBar _layoutBar] + 1768
21 UIKitCore 0x00007fff4828637e -[_UIButtonBarStackView updateConstraints] + 48
22 UIKitCore 0x00007fff490b0afa -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:] + 489
23 UIKitCore 0x00007fff490b10c8 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 1187
24 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
25 Foundation 0x00007fff25aa5778 -[NSISEngine withBehaviors:performModifications:] + 84
26 UIKitCore 0x00007fff490b186a __100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke + 85
27 UIKitCore 0x00007fff490b0077 -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:] + 104
28 UIKitCore 0x00007fff490b13c5 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] + 154
29 UIKitCore 0x00007fff490b22e4 -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:] + 393
30 UIKitCore 0x00007fff4917e9f1 -[UIView(Hierarchy) layoutBelowIfNeeded] + 1334
31 UIKitCore 0x00007fff4830a32d -[_UINavigationBarTransitionContextPush _prepareContentView] + 204
32 UIKitCore 0x00007fff4830c36d -[_UINavigationBarTransitionContextPush prepare] + 106
33 UIKitCore 0x00007fff4831bd7c -[_UINavigationBarVisualProviderModernIOS _performAnimationWithTransitionCompletion:transition:] + 2221
34 UIKitCore 0x00007fff482bd813 -[UINavigationBar _pushNavigationItem:transitionAssistant:] + 568
35 UIKitCore 0x00007fff482bcf76 -[UINavigationBar _pushNavigationItemUsingCurrentTransition:] + 366
36 UIKitCore 0x00007fff482bd0e2 -[UINavigationBar pushNavigationItem:animated:] + 179
37 UIKitCore 0x00007fff482b7523 -[UINavigationBar _performUpdatesIgnoringLock:] + 45
38 UIKitCore 0x00007fff482bd1d9 -[UINavigationBar _pushNavigationItem:transition:] + 133
39 UIKitCore 0x00007fff48549776 __71-[UINavigationController pushViewController:transition:forceImmediate:]_block_invoke + 457
40 UIKitCore 0x00007fff485498ed __71-[UINavigationController pushViewController:transition:forceImmediate:]_block_invoke.1801 + 114
41 UIKitCore 0x00007fff48544c46 __98-[UINavigationController _shouldSkipHostedRefreshControlUpdateSchedulingDeferredUpdateIfNecessary]_block_invoke + 16
42 UIKitCore 0x00007fff485467ef -[UINavigationController _startDeferredTransitionIfNeeded:] + 1348
43 UIKitCore 0x00007fff48547954 -[UINavigationController __viewWillLayoutSubviews] + 150
44 UIKitCore 0x00007fff48528924 -[UILayoutContainerView layoutSubviews] + 217
45 UIKitCore 0x00007fff49193678 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2478
46 QuartzCore 0x00007fff2b4c6398 -[CALayer layoutSublayers] + 255
47 QuartzCore 0x00007fff2b4cc523 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 523
48 QuartzCore 0x00007fff2b4d7bba _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 80
49 QuartzCore 0x00007fff2b420c04 _ZN2CA7Context18commit_transactionEPNS_11TransactionEd + 324
50 QuartzCore 0x00007fff2b4545ef _ZN2CA11Transaction6commitEv + 649
51 UIKitCore 0x00007fff48c84fc8 _UIApplicationFlushRunLoopCATransactionIfTooLate + 104
52 UIKitCore 0x00007fff48d32ab0 __handleEventQueueInternal + 7506
53 UIKitCore 0x00007fff48d28fb9 __handleHIDEventFetcherDrain + 88
54 CoreFoundation 0x00007fff23da0d31 _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 17
55 CoreFoundation 0x00007fff23da0c5c __CFRunLoopDoSource0 + 76
56 CoreFoundation 0x00007fff23da0434 __CFRunLoopDoSources0 + 180
57 CoreFoundation 0x00007fff23d9b02e __CFRunLoopRun + 974
58 CoreFoundation 0x00007fff23d9a944 CFRunLoopRunSpecific + 404
59 GraphicsServices 0x00007fff38ba6c1a GSEventRunModal + 139
60 UIKitCore 0x00007fff48c8b9ec UIApplicationMain + 1605
61 GasChecker 0x000000010099e5b7 main + 55
62 libdyld.dylib 0x00007fff51a231fd start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
This crash happens in a UINavigationController for three times (present and dismiss consequently for 2 times after the first open).
I made a debug by using breakpoints and I figured that it happens in the presented ViewController after the viewWillAppear finish and before the viewWillLayoutSubviews.
However, it didn't stop between my lines of code so I can't detect the cause of the error.
Happens in IOS 12 ONLY (Works fine in IOS 13)
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expression 0 + 0.0291667*0 + 0.00277778*369 unable to find variable UIWindow:0x7fb745603f60.minX{id: 21963} in engine 0x0'
*** First throw call stack:
(
0 CoreFoundation 0x000000011709929b __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000116635735 objc_exception_throw + 48
2 CoreFoundation 0x0000000117099022 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000112f5bc10 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
4 Foundation 0x000000011317221b -[NSISLinearExpression addVariable:coefficient:] + 341
5 UIKitCore 0x000000011ccb8166 -[UIView(AdditionalLayoutSupport) nsli_lowerAttribute:intoExpression:withCoefficient:forConstraint:onBehalfOfLayoutGuide:] + 3120
6 UIKitCore 0x000000011ccb7527 -[UIView(AdditionalLayoutSupport) nsli_lowerAttribute:intoExpression:withCoefficient:forConstraint:] + 289
7 Foundation 0x000000011317e0d3 -[NSLayoutConstraint _lowerIntoExpression:reportingConstantIsRounded:] + 96
8 Foundation 0x000000011317a3e8 -[NSLayoutConstraint _containerGeometryDidChange] + 117
9 UIKitCore 0x000000011cca33fa _UIViewEnumerateConstraints + 710
10 UIKitCore 0x000000011ccb10bc __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 315
11 Foundation 0x000000011316555a -[NSISEngine withBehaviors:performModifications:] + 110
12 UIKitCore 0x000000011ccb0f5a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 572
13 UIKitCore 0x000000011ccb0ce6 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 217
14 UIKitCore 0x000000011ccb1056 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 213
15 Foundation 0x000000011316555a -[NSISEngine withBehaviors:performModifications:] + 110
16 UIKitCore 0x000000011ccb0f5a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 572
17 UIKitCore 0x000000011ccb0ce6 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 217
18 UIKitCore 0x000000011ccb1056 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 213
19 Foundation 0x000000011316555a -[NSISEngine withBehaviors:performModifications:] + 110
20 UIKitCore 0x000000011ccb0f5a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 572
21 UIKitCore 0x000000011ccb0ce6 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 217
22 UIKitCore 0x000000011ccb1056 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 213
23 Foundation 0x000000011316555a -[NSISEngine withBehaviors:performModifications:] + 110
24 UIKitCore 0x000000011ccb0f5a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 572
25 UIKitCore 0x000000011ccb0ce6 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 217
26 UIKitCore 0x000000011ccb1056 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 213
27 Foundation 0x000000011316555a -[NSISEngine withBehaviors:performModifications:] + 110
28 UIKitCore 0x000000011ccb0f5a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 572
29 UIKitCore 0x000000011ccb0ce6 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 217
30 UIKitCore 0x000000011d1d6075 -[UIScrollView _switchToLayoutEngine:] + 106
31 UIKitCore 0x000000011ccb1056 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 213
32 Foundation 0x000000011316555a -[NSISEngine withBehaviors:performModifications:] + 110
33 UIKitCore 0x000000011ccb0f5a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 572
34 UIKitCore 0x000000011ccb0ce6 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 217
35 UIKitCore 0x000000011ccafd4d -[UIView(AdditionalLayoutSupport) _initializeHostedLayoutEngine] + 209
36 UIKitCore 0x000000011cca1712 -[UIView(UIConstraintBasedLayout) _layoutEngine_windowDidChange] + 130
37 UIKitCore 0x000000011d4da793 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 170
38 UIKitCore 0x000000011d4da9ab -[UIView(Internal) _didMoveFromWindow:toWindow:] + 706
39 UIKitCore 0x000000011d4cd091 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 151
40 UIKitCore 0x000000011d4ccf70 -[UIView(Hierarchy) _postMovedFromSuperview:] + 804
41 UIKitCore 0x000000011d4dd9a5 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1951
42 UIKitCore 0x000000011d0d17f1 -[UINavigationTransitionView transition:fromView:toView:] + 627
43 UIKitCore 0x000000011d0b63a6 -[UINavigationController _startTransition:fromViewController:toViewController:] + 3189
44 UIKitCore 0x000000011d0b6857 -[UINavigationController _startDeferredTransitionIfNeeded:] + 896
45 UIKitCore 0x000000011d0b7bac -[UINavigationController __viewWillLayoutSubviews] + 150
46 UIKitCore 0x000000011d04363f -[UILayoutContainerView layoutSubviews] + 217
47 UIKitCore 0x000000011d4e4015 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1441
48 QuartzCore 0x0000000114fb6d3d -[CALayer layoutSublayers] + 175
49 QuartzCore 0x0000000114fbbbf7 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 395
50 QuartzCore 0x0000000114f34aa6 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 342
51 QuartzCore 0x0000000114f6bc2a _ZN2CA11Transaction6commitEv + 576
52 UIKitCore 0x000000011cdf48f5 _afterCACommitHandler + 268
53 CoreFoundation 0x0000000116ffc037 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
54 CoreFoundation 0x0000000116ff64ce __CFRunLoopDoObservers + 430
55 CoreFoundation 0x0000000116ff6b61 __CFRunLoopRun + 1537
56 CoreFoundation 0x0000000116ff6221 CFRunLoopRunSpecific + 625
57 GraphicsServices 0x000000011c65e1dd GSEventRunModal + 62
58 UIKitCore 0x000000011cdcb115 UIApplicationMain + 140
59 Almtaar 0x000000010d43a1ab main + 75
60 libdyld.dylib 0x0000000118e83551 start + 1
61 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I've got an error while compiling in Xcode (Release/Debug)
DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/mk/Library/Developer/CoreSimulator/Devices/EC5630C3-373A-45AD-A404-5628B1B329B9/data/Containers/Data/Application/06D2441B-F5B5-47B8-B6A7-68AEA36BB0D6/Library/Cookies/com.test.my-app.binarycookies
I tried to install cordova-sqlite-storage and remove ios platform and reinstall ios platform and build project for IOS
I have no code to show because is terminating with uncaught exception error.
My app build successful for IOS in ionic.
After that I open the project in Xcode and run the project in simulator device then stuff I get an error in main.m
what I see in console:
2019-09-27 15:19:14.943154+0530 myApp[3086:93649] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/mk/Library/Developer/CoreSimulator/Devices/EC5630C3-373A-45AD-A404-5628B1B329B9/data/Containers/Data/Application/06D2441B-F5B5-47B8-B6A7-68AEA36BB0D6/Library/Cookies/com.test.my-app.binarycookies
2019-09-27 15:19:14.954425+0530 myApp[3086:93649] Apache Cordova native platform version 5.0.1 is starting.
2019-09-27 15:19:14.954596+0530 myApp[3086:93649] Multi-tasking -> Device: YES, App: YES
2019-09-27 15:19:14.972439+0530 myApp[3086:93649] -[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x6000011cc900
2019-09-27 15:19:14.981981+0530 myApp[3086:93649] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x6000011cc900'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23bb9704 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fff23b9d7bc ___forwarding___ + 1436
4 CoreFoundation 0x00007fff23b9f6c8 _CF_forwarding_prep_0 + 120
5 myApp 0x000000010a028723 -[CDVViewController viewDidLoad] + 227
6 myApp 0x000000010a004433 -[MainViewController viewDidLoad] + 51
7 UIKitCore 0x00007fff46af87c2 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 83
8 UIKitCore 0x00007fff46afd6d3 -[UIViewController loadViewIfRequired] + 1084
9 UIKitCore 0x00007fff46afdaf0 -[UIViewController view] + 27
10 UIKitCore 0x00007fff47199b55 -[UIWindow addRootViewControllerViewIfPossible] + 150
11 UIKitCore 0x00007fff4719920b -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 232
12 UIKitCore 0x00007fff4719a2c9 -[UIWindow _setHidden:forced:] + 362
13 UIKitCore 0x00007fff471ad46d -[UIWindow _mainQueue_makeKeyAndVisible] + 42
14 myApp 0x000000010a01ef3f -[CDVAppDelegate application:didFinishLaunchingWithOptions:] + 703
15 myApp 0x000000010a0041ab -[AppDelegate application:didFinishLaunchingWithOptions:] + 187
16 UIKitCore 0x00007fff4715994f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
17 UIKitCore 0x00007fff4715b2e7 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3980
18 UIKitCore 0x00007fff47160c05 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1281
19 UIKitCore 0x00007fff468b58b1 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
20 UIKitCore 0x00007fff46d96cd5 _UIScenePerformActionsWithLifecycleActionMask + 83
21 UIKitCore 0x00007fff468b63c3 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
22 UIKitCore 0x00007fff468b5e84 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 474
23 UIKitCore 0x00007fff468b61f3 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 821
24 UIKitCore 0x00007fff468b5a85 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
25 UIKitCore 0x00007fff468b9e70 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 159
26 UIKitCore 0x00007fff46cbdf8b +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 865
27 UIKitCore 0x00007fff46db51cf _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240
28 UIKitCore 0x00007fff468b9b9e __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 153
29 UIKitCore 0x00007fff46db50d2 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 84
30 UIKitCore 0x00007fff468b9a0c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 381
31 UIKitCore 0x00007fff46717c96 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 657
32 UIKitCore 0x00007fff4671681b -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248
33 UIKitCore 0x00007fff467179c0 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 210
34 UIKitCore 0x00007fff4715f262 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 535
35 UIKitCore 0x00007fff46cdf774 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
36 FrontBoardServices 0x00007fff362e1d43 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 442
37 FrontBoardServices 0x00007fff3630a00c __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102
38 FrontBoardServices 0x00007fff362ecd21 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220
39 FrontBoardServices 0x00007fff36309c9d __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355
40 libdispatch.dylib 0x000000010a387d64 _dispatch_client_callout + 8
41 libdispatch.dylib 0x000000010a38acd5 _dispatch_block_invoke_direct + 300
42 FrontBoardServices 0x00007fff3633108a __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
43 FrontBoardServices 0x00007fff36330d78 -[FBSSerialQueue _queue_performNextIfPossible] + 441
44 FrontBoardServices 0x00007fff36331287 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
45 CoreFoundation 0x00007fff23afbac1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
46 CoreFoundation 0x00007fff23afb9ec __CFRunLoopDoSource0 + 76
47 CoreFoundation 0x00007fff23afb1c4 __CFRunLoopDoSources0 + 180
48 CoreFoundation 0x00007fff23af5ecf __CFRunLoopRun + 1263
49 CoreFoundation 0x00007fff23af56b6 CFRunLoopRunSpecific + 438
50 GraphicsServices 0x00007fff3815cbb0 GSEventRunModal + 65
51 UIKitCore 0x00007fff47162a67 UIApplicationMain + 1621
52 myApp 0x000000010a0040d1 main + 65
53 libdyld.dylib 0x00007fff5123bcf5 start + 1
54 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
As the title says, my app immediately crashes when run if there is no internet connection/airplane mode is on. The thing is, when I set breakpoints it doesn't even make it to any of my code. Not a single viewDidLoad or even AppDelegate function gets called, and the error message doesn't seem like something that would be related to not having a network connection:
2019-03-21 10:30:20.193955-0500 AppName[98957:977030] *** Terminating
app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'Could not load NIB in bundle: 'NSBundle
<bundleFilePath> (loaded)' with name
'BYZ-38-t0r-view-8bC-Xf-vdC''
(I obviously inserted some fake values into their for privacy)
Call stack:
*** First throw call stack:
(
0 CoreFoundation 0x00000001036cb1bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000102c69735 objc_exception_throw + 48
2 CoreFoundation 0x00000001036cb015 +[NSException raise:format:] + 197
3 UIKitCore 0x00000001088edd94 -[UINib instantiateWithOwner:options:] + 497
4 UIKitCore 0x0000000108661452 -[UIViewController _loadViewFromNibNamed:bundle:] + 383
5 UIKitCore 0x0000000108661ddc -[UIViewController loadView] + 177
6 UIKitCore 0x00000001086620ee -[UIViewController loadViewIfRequired] + 175
7 UIKitCore 0x0000000108662940 -[UIViewController view] + 27
8 UIKitCore 0x000000010858134c -[UIPresentationController __sizeClassPair] + 62
9 UIKitCore 0x0000000108675428 -[UIViewController _presentViewController:withAnimationController:completion:] + 2300
10 UIKitCore 0x000000010867874b __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 99
11 UIKitCore 0x0000000108678dd9 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 511
12 UIKitCore 0x00000001086786b1 -[UIViewController _presentViewController:animated:completion:] + 173
13 UIKitCore 0x00000001086789f0 -[UIViewController presentViewController:animated:completion:] + 150
14 AppName 0x0000000100f1125e $SSo16UIViewControllerC12DataScoutProE27showDismissiveAlertMesssage7messageySS_tF + 254
15 AppName 0x0000000100e58a97 $S12AppName18HomeViewControllerC10commonInit33_90D4AB13D5DB6EAFA2D0742F81F552BALLyyF + 727
16 AppName 0x0000000100e58462 $S12AppName18HomeViewControllerC5coderACSgSo7NSCoderC_tcfc + 146
17 AppName 0x0000000100e584df $S12AppName18HomeViewControllerC5coderACSgSo7NSCoderC_tcfcTo + 47
18 UIKitCore 0x00000001088ec166 -[UIClassSwapper initWithCoder:] + 246
19 UIFoundation 0x000000010c8f35ad UINibDecoderDecodeObjectForValue + 749
20 UIFoundation 0x000000010c8f32b3 -[UINibDecoder decodeObjectForKey:] + 251
21 UIKitCore 0x00000001088f07b8 -[UIRuntimeConnection initWithCoder:] + 178
22 UIFoundation 0x000000010c8f35ad UINibDecoderDecodeObjectForValue + 749
23 UIFoundation 0x000000010c8f3854 UINibDecoderDecodeObjectForValue + 1428
24 UIFoundation 0x000000010c8f32b3 -[UINibDecoder decodeObjectForKey:] + 251
25 UIKitCore 0x00000001088ee067 -[UINib instantiateWithOwner:options:] + 1220
26 UIKitCore 0x0000000108e228b6 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
27 UIKitCore 0x0000000108c8103a -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 112
28 UIKitCore 0x0000000108c8150c -[UIApplication _loadMainInterfaceFile] + 272
29 UIKitCore 0x0000000108c7fb25 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1357
30 UIKitCore 0x000000010849e4e9 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
31 UIKitCore 0x00000001084a729c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
32 UIKitCore 0x000000010849e126 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 233
33 UIKitCore 0x000000010849eae0 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1085
34 UIKitCore 0x000000010849ccb5 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 795
35 UIKitCore 0x000000010849c95f -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 435
36 UIKitCore 0x00000001084a1a90 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 584
37 UIKitCore 0x00000001084a280e _performActionsWithDelayForTransitionContext + 100
38 UIKitCore 0x00000001084a17ef -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 221
39 UIKitCore 0x00000001084a693a -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
40 UIKitCore 0x0000000108c7e44e -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
41 UIKitCore 0x0000000108822d09 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 357
42 FrontBoardServices 0x000000010f55e2da -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448
43 FrontBoardServices 0x000000010f569443 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 271
44 FrontBoardServices 0x000000010f568b3a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53
45 libdispatch.dylib 0x000000010548a602 _dispatch_client_callout + 8
46 libdispatch.dylib 0x000000010548db78 _dispatch_block_invoke_direct + 301
47 FrontBoardServices 0x000000010f59dba8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
48 FrontBoardServices 0x000000010f59d860 -[FBSSerialQueue _performNext] + 457
49 FrontBoardServices 0x000000010f59de40 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
50 CoreFoundation 0x0000000103630721 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
51 CoreFoundation 0x000000010362ff93 __CFRunLoopDoSources0 + 243
52 CoreFoundation 0x000000010362a63f __CFRunLoopRun + 1263
53 CoreFoundation 0x0000000103629e11 CFRunLoopRunSpecific + 625
54 GraphicsServices 0x000000010c5b71dd GSEventRunModal + 62
55 UIKitCore 0x0000000108c8181d UIApplicationMain + 140
56 AppName 0x0000000100e8e794 main + 68
57 libdyld.dylib 0x0000000105500575 start + 1
)
I really have no clue what it could be. Tried setting a symbolic breakpoint at [UIViewController _loadViewFromNibNamed:bundle:] but that didn't really give any useful insight. Hope someone can help. I should also mention the only thing I'm doing in AppDelegate is instantiating firebase.
Helpful guy over at reddit figured it out for me. Didn't realize but there was an init() function on my initial view controller that the last guy made which checked the internet connection and redirected to a different page if there wasn't one.