IOS Kakao Login KOSessionTask 에러

문의 시 사용하시는 SDK 버전 정보를 알려주세요.

*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: '+[KOSessionTask userMeTaskWithCompletion:]: unrecognized selector sent to class 0x101fc9660’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff20405604 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201a4a45 objc_exception_throw + 48
2 CoreFoundation 0x00007fff204144d3 __CFExceptionProem + 0
3 CoreFoundation 0x00007fff20409bbf forwarding + 1471
4 CoreFoundation 0x00007fff2040bd48 _CF_forwarding_prep_0 + 120
5 CordovaPlugins 0x0000000101f71e0f -[KakaoCordovaSDK login:] + 175
6 Capacitor 0x0000000101d7f1c5 $s9Capacitor0A6BridgeC19handleCordovaJSCall4callyAA0E0V_tF + 3141
7 Capacitor 0x0000000101dc8a0e $s9Capacitor24WebViewDelegationHandlerC21userContentController_10didReceiveySo06WKUsergH0C_So15WKScriptMessageCtF + 6766
8 Capacitor 0x0000000101dc8b97 $s9Capacitor24WebViewDelegationHandlerC21userContentController_10didReceiveySo06WKUsergH0C_So15WKScriptMessageCtFTo + 71
9 WebKit 0x00007fff298d3585 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyEONS0_13FrameInfoDataERN3API12ContentWorldERN7WebCore21SerializedScriptValueE + 239
10 WebKit 0x00007fff29bd9067 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageEN3WTF16ObjectIdentifierINS_26WebPageProxyIdentifierTypeEEEONS_13FrameInfoDataEyRKNS1_4SpanIKhLm18446744073709551615EEEONS1_17CompletionHandlerIFvSB_RKNS1_6StringEEEE + 713
11 WebKit 0x00007fff29ea1738 ZN3IPC18handleMessageAsyncIN8Messages29WebUserContentControllerProxy14DidPostMessageEN6WebKit29WebUserContentControllerProxyEMS5_FvN3WTF16ObjectIdentifierINS4_26WebPageProxyIdentifierTypeEEEONS4_13FrameInfoDataEyRKNS6_4SpanIKhLm18446744073709551615EEEONS6_17CompletionHandlerIFvSG_RKNS6_6StringEEEEEEEvRNS_10ConnectionERNS_7DecoderEPT0_T1 + 3997
12 WebKit 0x00007fff29ea0788 _ZN6WebKit29WebUserContentControllerProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 64
13 WebKit 0x00007fff29949dc0 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 216
14 WebKit 0x00007fff29b4f047 _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 31
15 WebKit 0x00007fff2993edb1 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 615
16 WebKit 0x00007fff2993e510 _ZN3IPC10Connection24dispatchIncomingMessagesEv + 408
17 JavaScriptCore 0x00007fff3294c5ef _ZN3WTF7RunLoop11performWorkEv + 431
18 JavaScriptCore 0x00007fff3294d0da _ZN3WTF7RunLoop11performWorkEPv + 26
19 CoreFoundation 0x00007fff203724a7 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
20 CoreFoundation 0x00007fff2037239f __CFRunLoopDoSource0 + 180
21 CoreFoundation 0x00007fff2037186c __CFRunLoopDoSources0 + 242
22 CoreFoundation 0x00007fff2036bf68 __CFRunLoopRun + 871
23 CoreFoundation 0x00007fff2036b704 CFRunLoopRunSpecific + 562
24 GraphicsServices 0x00007fff2cba9c8e GSEventRunModal + 139
25 UIKitCore 0x00007fff2509e65a -[UIApplication _run] + 928
26 UIKitCore 0x00007fff250a32b5 UIApplicationMain + 101
27 App 0x000000010111d85f main + 63
28 dyld 0x0000000101a45f21 start_sim + 10
29 ??? 0x000000010c4fe51e 0x0 + 4501529886
)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/yjh0719-iMac/Library/Developer/Xcode/DerivedData/App-exdtbyfasyjjvzfiifufssivrwuv/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/yjh0719-iMac/Library/Developer/Xcode/DerivedData/App-exdtbyfasyjjvzfiifufssivrwuv/Build/Products/Debug-iphonesimulator:/Users/yjh0719-iMac/Library/Developer/Xcode/DerivedData/App-exdtbyfasyjjvzfiifufssivrwuv/Build/Products/Debug-iphonesimulator/PackageFrameworks
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘+[KOSessionTask userMeTaskWithCompletion:]: unrecognized selector sent to class 0x101fc9660’
CoreSimulator 802.6.1 - Device: iPhone SE (3rd generation) (45D657B2-CA38-4E1B-AF35-996C1F9FB117) - Runtime: iOS 15.5 (19F70) - DeviceType: iPhone SE (3rd generation)
terminating with uncaught exception of type NSException


SDK 는 branch master로 KakaoOpenSDK 사용중이며
image
image

InfoList에 LSApplicationQueriesSchemes 추가하였고
AppDelegate에 KakaoSdk.initSDK(appKey) 추가하였습니다.
Other Linker Flags 에 "-all_load 도 추가하였습니다.

Native App Key도 동일하게 넣어주었는데 무엇이 문제일까요…

안녕하세요

Other Linker Flags 설정이 어떻게 되어 있는지 캡처 부탁드립니다.
그리고 사용하고 계신 SDK 버전과 deployment target 버전도 확인 부탁드립니다.

image

현재 deployment target은 ios12.0입니다.

image

혹시 몰라서 -all_load " " 도 같이 넣어줬습니다.

참고로 capacitor ionic 사용해서 ios로 build 했습니다.

image

정상동작 하지 않아 Project에도 넣어줬습니다…!

target 쪽을 펼처서 보여주시겠어요?

image
iOS SDKs:
iOS 15.5
사용중입니다.

아래 가이드 확인 부탁드립니다.

Kakao Developers 문서

프레임워크(Framework)가 잘 추가되었다면 프로젝트의 [Build Settings] > [Linking] > [Other Linker Flags]에 -all_load 옵션을 추가합니다.
옵션 추가 후 다른 라이브러리와의 충돌로 빌드가 실패한다면 -force_load \$(SRCROOT)/KakaoOpenSDK.framework/KakaoOpenSDK를 사용해 강제 로드합니다.

image

Frameworks에 추가해주고 들어갔는지 확인했는데 동일하네요…

설정에 이유가 있을 것 같습니다.
아래 레거시 샘플코드를 다운받아 비교 부탁 드립니다.

Legacy iOS | Kakao Developers 문서