티스토리 뷰
Swift/Debugging Notes
[오류] Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICollectionViewCell 0x7fa81903e210> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key dateLabel.'
ylog 2022. 3. 1. 19:11CollectionView 셀을 이용한 앱을 만들어보던 중 생긴 오류
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICollectionViewCell 0x7fa81903e210> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key dateLabel.'
분명 셀에 대한 클래스도 잘 지정하고,
Identifier도 잘 지정했고,
셀에 대한 swift 파일도 잘 작성했는데
발생한 오류라 당황스러웠다.
원인은 의외로 간단했다.
셀의 'Inherit Module From Target' 체크란을 체크해주니 해결되었다.
'Swift > Debugging Notes' 카테고리의 다른 글
[오류] UITest 시 키보드 dismiss 하는 법 (0) | 2022.09.14 |
---|---|
[오류] Fatal error: Expected superview but found nil when attempting make constraint `equalToSuperview`. (0) | 2022.04.20 |
Info.plist의 'Main storyboard file base name' 은 어디로 간걸까 (0) | 2022.03.22 |
[오류] sender로 넘겨받는 sender.title(for: normal) 에서 값이 nil이 나올 때 (4) | 2022.01.19 |
[오류] Editor placeholder in source file (0) | 2021.08.03 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 2023년
- Autolayout
- KeyChain
- Kotlin
- 2024년
- http/1
- snapkit
- collectionViewCell
- dismiss
- IntrinsicContentSize
- equaltosuperview
- swift
- CRAWL
- 부스트캠프
- UITest
- 회고
- XCTest
- BeautifulSoup
- IOS
- 스위프트
- 웹모바일
- http/1.1
- 네트워킹
- Realm
- 유즈케이스
- CollectionView
- 오토레이아웃
- 클린 아키텍처
- Clean Architecture
- Info.plist
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함