Не удается найти ошибку при отладке сбоя Xcode 11 Swift - PullRequest
0 голосов
/ 10 октября 2019

Я не могу найти, что идет не так. У меня есть экран входа в систему (открывается в модальном режиме), и когда он закрывается в ios 13, происходит сбой приложения

с ios 12 и 11, все в порядке

это трассировка стека

но я не могу найти, где проблема, я вижу общую ошибку UIApplication

2019-10-10 16:52:09.930542+0200 Gonnelli[16557:2053349] -[__SwiftValue encodeWithCoder:]: unrecognized selector sent to instance 0x600003d1a9a0
2019-10-10 16:52:09.979858+0200 Gonnelli[16557:2053349] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__SwiftValue encodeWithCoder:]: unrecognized selector sent to instance 0x600003d1a9a0'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23baa1ee __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff50864b20 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23bcb154 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x00007fff23baef6c ___forwarding___ + 1436
    4   CoreFoundation                      0x00007fff23bb10f8 _CF_forwarding_prep_0 + 120
    5   Foundation                          0x00007fff256596da _encodeObject + 1183
    6   Foundation                          0x00007fff256586db +[NSKeyedArchiver archivedDataWithRootObject:] + 140
    7   UIKitCore                           0x00007fff47159fdd -[_UIAppearanceRecorder _recordInvocation:withClassName:containerClassNames:traitCollection:selectorString:forRemoteProcess:] + 2914
    8   UIKitCore                           0x00007fff4715435c __54+[_UIAppearance _recordersExcludingSource:withWindow:]_block_invoke + 891
    9   CoreFoundation                      0x00007fff23c32d87 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 7
    10  CoreFoundation                      0x00007fff23c0bf8e -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 238
    11  UIKitCore                           0x00007fff47153fcf +[_UIAppearance _recordersExcludingSource:withWindow:] + 131
    12  UIKitCore                           0x00007fff47946216 UIViewServiceCurrentAppearanceSerializedRepresentations + 80
    13  UIKitCore                           0x00007fff4791f1e7 +[_UIRemoteViewController _requestViewController:traitCollection:fromServiceWithBundleIdentifier:service:connectionHandler:] + 355
    14  UIKitCore                           0x00007fff4791ee55 +[_UIRemoteViewController requestViewController:fromServiceWithBundleIdentifier:connectionHandler:] + 184
    15  SafariServices                      0x00007fff2b561065 +[SFPasswordRemoteViewController requestViewControllerWithConnectionHandler:] + 94
    16  SafariServices                      0x00007fff2b527674 -[_SFAppPasswordSavingViewController _connectToServiceWithCompletion:] + 122
    17  SafariServices                      0x00007fff2b582e99 -[_SFPasswordViewController _connectToService] + 114
    18  SafariServices                      0x00007fff2b582c5e -[_SFPasswordViewController init] + 85
    19  SafariServices                      0x00007fff2b527549 -[_SFAppPasswordSavingViewController init] + 42
    20  UIKitCore                           0x00007fff474443be -[UIKBAutofillController handleAutofillCredentialSaveIfNeeded:fromASP:] + 723
    21  UIKitCore                           0x00007fff47a49444 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1825
    22  UIKitCore                           0x00007fff46f5fde8 -[UIControl _didMoveFromWindow:toWindow:] + 67
    23  UIKitCore                           0x00007fff47a48feb -[UIView(Internal) _didMoveFromWindow:toWindow:] + 712
    24  UIKitCore                           0x00007fff47a48feb -[UIView(Internal) _didMoveFromWindow:toWindow:] + 712
    25  UIKitCore                           0x00007fff47a48feb -[UIView(Internal) _didMoveFromWindow:toWindow:] + 712
    26  UIKitCore                           0x00007fff479c2c6d -[UIScrollView _didMoveFromWindow:toWindow:] + 88
    27  UIKitCore                           0x00007fff47a48feb -[UIView(Internal) _didMoveFromWindow:toWindow:] + 712
    28  UIKitCore                           0x00007fff47a3c694 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 133
    29  Foundation                          0x00007fff2580353b -[NSISEngine withBehaviors:performModifications:] + 84
    30  UIKitCore                           0x00007fff47a3c5b1 -[UIView(Hierarchy) _postMovedFromSuperview:] + 827
    31  UIKitCore                           0x00007fff47a3a672 __UIViewWasRemovedFromSuperview + 172
    32  UIKitCore                           0x00007fff47a3a14b -[UIView(Hierarchy) removeFromSuperview] + 362
    33  UIKitCore                           0x00007fff46e1d006 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke_2.674 + 674
    34  UIKitCore                           0x00007fff46e15bb9 -[UIPresentationController transitionDidFinish:] + 102
    35  UIKitCore                           0x00007fff46e206f2 -[_UICurrentContextPresentationController transitionDidFinish:] + 41
    36  UIKitCore                           0x00007fff46e1aa61 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.503 + 199
    37  UIKitCore                           0x00007fff46f32e2c -[_UIViewControllerTransitionContext completeTransition:] + 88
    38  UIKitCore                           0x00007fff47a0c180 -[UITransitionView notifyDidCompleteTransition:] + 247
    39  UIKitCore                           0x00007fff47a0be03 -[UITransitionView _didCompleteTransition:] + 1423
    40  UIKitCore                           0x00007fff47a45f20 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 671
    41  UIKitCore                           0x00007fff47a16a11 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 268
    42  UIKitCore                           0x00007fff47a16f83 -[UIViewAnimationState animationDidStop:finished:] + 259
    43  UIKitCore                           0x00007fff47a1710a -[UIViewAnimationState animationDidStop:finished:] + 650
    44  QuartzCore                          0x00007fff2b080ac2 _ZN2CA5Layer23run_animation_callbacksEPv + 306
    45  libdispatch.dylib                   0x000000010ff72d6c _dispatch_client_callout + 8
    46  libdispatch.dylib                   0x000000010ff80e24 _dispatch_main_queue_callback_4CF + 1500
    47  CoreFoundation                      0x00007fff23b0ce49 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    48  CoreFoundation                      0x00007fff23b07aa9 __CFRunLoopRun + 2329
    49  CoreFoundation                      0x00007fff23b06e66 CFRunLoopRunSpecific + 438
    50  GraphicsServices                    0x00007fff38346bb0 GSEventRunModal + 65
    51  UIKitCore                           0x00007fff47578dd0 UIApplicationMain + 1621
    52  Gonnelli                            0x000000010927a1cb main + 75
    53  libdyld.dylib                       0x00007fff516ecd29 start + 1
    54  ???                                 0x0000000000000001 0x0 + 1
)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...