➰ 🍎🍏🍎🍏/iOS

[Error Solved] Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<FruitCardGame.ViewController 0x123e07680> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key IBAction.' *** First throw call s..

 사과개발자 2021. 8. 24. 00:40

발생한 에러

Xcode 에서 storyboard 수정 후 발생

Terminating app due to uncaught exception 'NSUnknownKeyException', 
reason: '[<FruitCardGame.ViewController 0x123e07680> 
setValue:forUndefinedKey:]: this class is not key value coding-compliant for 
the key IBAction.' *** First throw call s..

 

원인 및 해결방법

button > 오른쪽 마우스 클릭을 통해 현재 버튼이 Outlet 과 Action 이 중첩되서 선언되지는 않았는지 확인해보세요!
기능이 중첩되지 않도록 수정하면 위의 에러를 해결하실 수 있습니다

반응형