버튼을 클릭했을 때 무언가를 인쇄하려고합니다.xcode에서 잡히지 않은 예외 (신호 SIGABRT)가 발견되었다는 오류가 발생했습니다.
import UIKit
class ViewController: UIViewController {
@IBAction func bu(_ sender: UIButton) {
print("click")
}
}
2017년 5월 22일 18
같은 콘솔에서의 표시 오차 : 28 : 58.751 그것이 작동이 [24,356 : 1,074,948] * 때문에 캐치되지 않는 예외 앱 종료 'NSUnknownKeyException' 이유 : '[ setValue : forUndefinedKey :] :이 클래스는 키 값에 맞지 않는 키 값 입니다.' * 우선 투사 호출 스택 (0 CoreFoundation에서의 0x0000000110a06b0b exceptionPreprocess 171 + 1 libobjc.A.dylib
0x000000010ddcb141 objc_exception_throw + 48 2 CoreFoundation에서
0x0000000110a06a59 - [NSException 제기] + 9 3 재단
0x000000010d8e0e8b - [NSObject의 (NSKeyValueCoding)의 setValue : forKey는 :] + 292 4 UIKit 0x000000010e431644 - [UIViewController에의 setValue : forKey는 :] + 87 5 UIKit의 0x000000010e69e6b9는 - [UIRuntimeOutletConnection 연결] + 109 6
CoreFoundation에서 0x00000001109ace8d - [NSArray를 makeObjectsPerformSelector :] + 269 7 UIKit 012,380,073,162,755 2,314,960,453,210 0x000000010e69d06f - [UINib instantiateWithOwner : 선택해] + 1,856 8
UIKit 0x000000010e437c73 - [UIViewController에 _loadViewFromNibNamed : 번들 :] + 381 9 UIKit 0x000000010e438589 - [의 UIViewController에는 loadView] + 177 10 UIKit
0x000000010e4388ba - [UIViewController에 loadViewIfRequired] + 195 11 UIKit의 0x000000010e43910a - [UIViewController에보기] + 27 12 UIKit의 0x000000010e30163a - [UIWindow addRootViewControllerViewIfPossible] + 65 13 UIKit 0x000000010e301d20 - [UIWindow _setHidden : 외부 힘 :] + 294 14 UIKit의 0x000000010e314b6e - [UIWindow makeKeyAndVisible] + 42 15 UIKit
0x0000000 10e28e31f - [UIApplication _callInitializationDelegatesForMainScene : transitionContext :] + 4346 16 UIKit 0x000000010e294584 - [UIApplication _runWithMainScene : transitionContext : 완료 :] + 1,709 17 UIKit 0x000000010e291793 - [UIApplication workspaceDidEndTransaction :] + 182 18 FrontBoardServices 0x00000001121065f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 24 19 FrontBoardServices 0x000000011210646d - [FBSSerialQueue _performNext] + 186 20 FrontBoardServices 0x00000001121067f6 - [FBSSerialQueue _performNextFromRunLoopSource] + 45 21 CoreFoundation에서 0x00000001109acc01 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 22 CoreFoundation에서 0x0을 0000001109920cf __CFRunLoopDoSources0 + 527 23 CoreFoundation에서 0x00000001109915ff __CFRunLoopRun + 911 24 CoreFoundation에서
0x0000000110991016 CFRunLoopRunSpecific + 406 25 UIKit
0x000000010e29002f - [UIApplication _run] + 468 26 UIKit
0x000000010e2960d4 UIApplicationMain + 159 27는
0x000000010d638c17 메인 + 55 28 작동 libdyld.dylib
0x000000011199665d start + 1) libC++ abi.dylib : 나는 버튼도 여기에 연결되지 않은 생각 유형 NSException (lldb)의 캐치되지 않는 예외
과 종료는 스토리 보드에서 이미지 링크 enter link description here https://i.stack.imgur.com/AuUgk.png
체크 번 출구 이름으로
교체'button'가 제대로 분리 여부에 당신의'ViewController' –
행동와 콘센트에 연결을 확인합니다. –
아마도 UIButton에 액션을 바인딩하지 않습니다. –