• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

Thread 1: signal SIGABRT 오류발생 입니다.

19.04.30 01:16 작성 조회수 962

0

꼼꼼하게 코드를 전부 확인했으나 이상이 없어서

혹시나 해서 야곰님이 올려두신 코드를  복사해서

컴파일 해보았으나

 

다음과 같은 오류가 발생했습니다.

웹킷 객체를 구성하지 못한것 같은데 이유를 모르겠네요..

 

2019-04-30 01:14:12.255645+0900 MyWebBrowser[14759:376648] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named WKWebView because no class named WKWebView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010d9d06fb __exceptionPreprocess + 331
    1   libobjc.A.dylib                     0x000000010cf74ac5 objc_exception_throw + 48
    2   CoreFoundation                      0x000000010d9d0555 +[NSException raise:format:] + 197
    3   UIFoundation                        0x0000000116dfb6c9 UINibDecoderDecodeObjectForValue + 360
    4   UIFoundation                        0x0000000116dfbaf9 UINibDecoderDecodeObjectForValue + 1432
    5   UIFoundation                        0x0000000116dfb554 -[UINibDecoder decodeObjectForKey:] + 251
    6   UIKitCore                           0x00000001116ed705 -[UIView initWithCoder:] + 802
    7   UIFoundation                        0x0000000116dfb852 UINibDecoderDecodeObjectForValue + 753
    8   UIFoundation                        0x0000000116dfb554 -[UINibDecoder decodeObjectForKey:] + 251
    9   UIKitCore                           0x0000000110ed2b41 -[UIRuntimeConnection initWithCoder:] + 178
    10  UIFoundation                        0x0000000116dfb852 UINibDecoderDecodeObjectForValue + 753
    11  UIFoundation                        0x0000000116dfbaf9 UINibDecoderDecodeObjectForValue + 1432
    12  UIFoundation                        0x0000000116dfb554 -[UINibDecoder decodeObjectForKey:] + 251
    13  UIKitCore                           0x0000000110ed03f1 -[UINib instantiateWithOwner:options:] + 1216
    14  UIKitCore                           0x0000000110c4d3af -[UIViewController _loadViewFromNibNamed:bundle:] + 382
    15  UIKitCore                           0x0000000110c4dd39 -[UIViewController loadView] + 177
    16  UIKitCore                           0x0000000110c4e048 -[UIViewController loadViewIfRequired] + 172
    17  UIKitCore                           0x0000000110bb2004 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 68
    18  UIKitCore                           0x0000000110bb22f7 -[UINavigationController _startTransition:fromViewController:toViewController:] + 146
    19  UIKitCore                           0x0000000110bb33b5 -[UINavigationController _startDeferredTransitionIfNeeded:] + 896
    20  UIKitCore                           0x0000000110bb46a7 -[UINavigationController __viewWillLayoutSubviews] + 150
    21  UIKitCore                           0x0000000110b9538d -[UILayoutContainerView layoutSubviews] + 217
    22  UIKitCore                           0x000000011171e9c1 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1417
    23  QuartzCore                          0x0000000112c8feae -[CALayer layoutSublayers] + 173
    24  QuartzCore                          0x0000000112c94b88 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 396
    25  QuartzCore                          0x0000000112ca0ee4 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 72
    26  QuartzCore                          0x0000000112c103aa _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 328
    27  QuartzCore                          0x0000000112c47584 _ZN2CA11Transaction6commitEv + 608
    28  UIKitCore                           0x0000000111269ccb __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 128
    29  CoreFoundation                      0x000000010d937aec __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
    30  CoreFoundation                      0x000000010d9372b0 __CFRunLoopDoBlocks + 336
    31  CoreFoundation                      0x000000010d931b34 __CFRunLoopRun + 1252
    32  CoreFoundation                      0x000000010d931302 CFRunLoopRunSpecific + 626
    33  GraphicsServices                    0x0000000116a9f2fe GSEventRunModal + 65
    34  UIKitCore                           0x0000000111250ba2 UIApplicationMain + 140
    35  MyWebBrowser                        0x000000010c68eebb main + 75
    36  libdyld.dylib                       0x000000010fdc1541 start + 1
    37  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

답변 1

답변을 작성해보세요.

3

 

자문 자답 입니다.

임포트 과정에서 웹킷 라이브러리가

제대로 임포트되지 않았던 문제인것 같습니다.

 

웹킷 라이브러리를 직접 등록하니 문제없이

실행이 가능했습니다.