KakaoOpenSDK 2.18.2
ID 916590
**Failed to open URL https://talk-apps.kakao.com/scheme/kakaokompassauth%3A%2F%2Fauthorize%3Fredirect_uri=kakao008fccb5318ed3276c65e7091a0a8f16%3A%2F%2Foauth&headers=%257B%2522KA%2522%3A%2522sdk%255C%2F2.18.2%2520sdk_type%255C%2Frx_swift%2520os%255C%2Fios-17.1.1%2520lang%255C%2Fko-KR%2520res%255C%2F390x844%2520device%255C%2FiPhone%2520origin%255C%2Fcom.hyungyu.HMOA-iOS%2520app_ver%255C%2F1.0%2522%257D¶ms=%257B%2522code_challenge%2522%3A%2522ZbXL4fP7CPWT1XxLVYs3ieMCPNOpEKEsmBsw9zwyNPc%2522,%2522code_challenge_method%2522%3A%2522S256%2522%257D&client_id=008fccb5318ed3276c65e7091a0a8f16&response_type=code: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.google.chrome.ios" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x137b17e00 {Error Domain=FBSOpenApplicationErrorDomain Code=3 "Application com.hyungyu.HMOA-iOS is neither visible nor entitled, so may not perform un-trusted user actions." UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Application com.hyungyu.HMOA-iOS is neither visible nor entitled, so may not perform un-trusted user actions.}}, NSLocalizedDescription=The request to open "com.google.chrome.ios" failed., FBSOpenApplicationRequestID=0x509f, NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: Security ("Application com.hyungyu.HMOA-iOS is neither visible nor entitled, so may not perform un-trusted user actions").}**
**2023-11-10 12:22:34348 [‼️][AuthController+Rx.swift 80:29] -> 카카오톡 실행 취소**
**2023-11-10 12:22:35023 [‼️][AuthRequestRetrier.swift 40:25] -> request retrier:**
**error:requestAdaptationFailed(error: KakaoSDKCommon.SdkError.ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.TokenNotFound, errorMessage: Optional("authentication tokens not exist.")))**
**not api error -> pass through**
**2023-11-10 12:22:35024 [‼️][AuthRequestRetrier.swift 119:21] -> request retrier:**
**not handled error -> pass through**
**2023-11-10 12:22:35025 [‼️][Api.swift 151:29] -> response:**
**api error: ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.TokenNotFound, errorMessage: Optional("authentication tokens not exist."))**
카카오톡 로그인 시도를 하면 다음과 같은 로그가 뜨고 카톡 실행 후 face id로 카톡 잠금 해제 후 다시 앱 화면으로 돌아옵니다.
info.plist는 다음과 같고 가린 부분에는 모두 nativeKey를 넣었습니다
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
configureNavigationBar()
RxKakaoSDK.initSDK(appKey: Key.KAKAO_NATIVE_APP_KEY)
return true
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
var handled: Bool
//Google Login
handled = GIDSignIn.sharedInstance.handle(url)
if handled {
return true
}
if (AuthApi.isKakaoTalkLoginUrl(url)) {
return AuthController.rx.handleOpenUrl(url: url)
}
return false
}
AppDelegate는 다음과 같이 되어 있습니다. if (AuthApi.isKakaoTalkLoginUrl(url)) 해당 코드 구문을 지워봐도 같은 로그가 떴습니다.
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
if let url = URLContexts.first?.url {
if (AuthApi.isKakaoTalkLoginUrl(url)) {
_ = AuthController.rx.handleOpenUrl(url: url)
}
}
}
SceneDelegate는 다음과 같습니다. kakaoSdk ios 가이드를 보며 그대로 했는데 이게 5월 쯤에 구현했을 때는 정상 작동 했는데 다시 실행해보니 저 로그와 함께 실행되지 않습니다.