iOS/Swift + Objective-c
[iOS] [NSBundle ko_appKey:] unrecognized selector sent to class 해결 방법
안경 쓴 귀니
2021. 11. 22. 19:44
반응형
iOS 카카오 SDK 연동 시 [NSBundle ko_appKey:] unrecognized selector sent to class 에러 해결 방법
발생 에러
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSBundle ko_appKey]: unrecognized selector sent to class
해결 방법
Build Setting 수정
- 프로젝트 > TARGETS > 앱 > Build Settings > Other Linker Flags에 -all_load 추가
※ 아래 이미지에서 카카오 SDK를 Framework에서 사용하기 때문에 Framework에서 설정한 것이며,
일반 앱은 TARGETS에서 앱 선택 후 수정해야 합니다.
반응형