error: #this class is not key value coding-compliant for the key

torinunna·2022년 7월 6일

myErrors

목록 보기
1/3

error:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<내프로젝트.프로젝트ViewController xxxxxx> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key profileButton.'

빌드를 했을때는 에러가 안떴는데 런을 하면 자꾸 실행이 안됐다.

원인은 Referencing Outlets 에서 찾을 수 있었다.

searchTextField가 두 번 연결되어있었고 하나를 제거하니 오류가 해결되었다!

profile
ios가 궁금해!

0개의 댓글