• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

4분 12초 부근에서 뭔가 스킵하셨는데

19.03.05 10:54 작성 조회수 117

0

ㅁ 모양에 프레젠트 모달리 하는 부분이 없습니다. 제가 하면 겹쳐서 나오네요. 그리고 프로젝트 돌리면 아이덴티티 없다고 에러 나요.

The file “todos.json” couldn’t be opened because there is no such file.

허용여부 true, 오류 : 없음

2019-03-05 09:26:32.086463+0900 Todos[69953:4622760] Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Todos.TodoViewController 0x7fc4802023c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key memoTextField.'

First throw call stack:

(

0 CoreFoundation 0x000000010e3ef1bb exceptionPreprocess + 331

1 libobjc.A.dylib 0x000000010c95f735 objc_exception_throw + 48

2 CoreFoundation 0x000000010e3eed29 -[NSException raise] + 9

3 Foundation 0x000000010c38ade4 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292

4 UIKitCore 0x0000000110753292 -[UIViewController setValue:forKey:] + 87

5 UIKitCore 0x00000001109ea573 -[UIRuntimeOutletConnection connect] + 109

6 CoreFoundation 0x000000010e3dacfd -[NSArray makeObjectsPerformSelector:] + 317

7 UIKitCore 0x00000001109e72b9 -[UINib instantiateWithOwner:options:] + 1814

8 UIKitCore 0x000000011075a452 -[UIViewController _loadViewFromNibNamed:bundle:] + 383

9 UIKitCore 0x000000011075addc -[UIViewController loadView] + 177

10 UIKitCore 0x000000011075b0ee -[UIViewController loadViewIfRequired] + 175

11 UIKitCore 0x000000011075b940 -[UIViewController view] + 27

12 UIKitCore 0x00000001106c9177 -[UINavigationController preferredContentSize] + 197

13 UIKitCore 0x000000011067a0ec -[UIPresentationController preferredContentSizeDidChangeForChildContentContainer:] + 64

14 UIKitCore 0x0000000110675d0b __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 116

15 UIKitCore 0x0000000110d860d2 _runAfterCACommitDeferredBlocks + 318

16 UIKitCore 0x0000000110d74b2c _cleanUpAfterCAFlushAndRunDeferredBlocks + 384

17 UIKitCore 0x0000000110da3efc _afterCACommitHandler + 135

18 CoreFoundation 0x000000010e353c27 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23

19 CoreFoundation 0x000000010e34e0be CFRunLoopDoObservers + 430

20 CoreFoundation 0x000000010e34e751 __CFRunLoopRun + 1537

21 CoreFoundation 0x000000010e34de11 CFRunLoopRunSpecific + 625

22 GraphicsServices 0x000000011650b1dd GSEventRunModal + 62

23 UIKitCore 0x0000000110d7a81d UIApplicationMain + 140

24 Todos 0x000000010c00f607 main + 71

25 libdyld.dylib 0x000000010f888575 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

답변 1

답변을 작성해보세요.

0

오류 로그를 보면 두 가지 문제가 있네요.

첫 번째로는 todos.json 파일이 없다는 것. - 만약 처음 실행상태라면 없을 수도 있습니다. 이 경우는 괜찮아요.

 

앱이 강제종료 되는 직접적 원인은 스토리보드의 TodoViewController에 연결해둔 memoTextField를 찾을 수 없기 때문입니다. 스토리보드에서 아웃렛 연결이 잘 되어있는지, 혹은 잘못된 연결을 삭제하진 않았는지 확인해보세요