iOS/iOS이모저모

[Swfit]네이버 로그인 시 에러 메시지 canOpenURL: failed for URL: "naversearchapp://" - error: "The operation couldn’t be completed.

최지철 2023. 2. 21. 15:06
728x90
반응형
-canOpenURL: failed for URL: "naversearchapp://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
-canOpenURL: failed for URL: "naversearchthirdlogin://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
-canOpenURL: failed for URL: "naversearchapp://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
-canOpenURL: failed for URL: "naversearchapp://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
-canOpenURL: failed for URL: "naversearchapp://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
+[NaverThirdPartyLoginConnection sizeWithText:withFont:]: unrecognized selector sent to class 0x1001bddd0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NaverThirdPartyLoginConnection sizeWithText:withFont:]: unrecognized selector sent to class 0x1001bddd0'

시뮬레이터를 사용중이시라면, 시뮬레이터에 네이버앱이 깔려있지 않아서입니다. 실 기기를 통해 확인 해보시면 되실겁니당

혹은 헤더파일에 추가하신 URL을 불러오지 못해서 그런것입니다. Appdelegate부분에 넣으신

    

                instance?.serviceUrlScheme = ""

                instance?.consumerKey = ""

                instance?.consumerSecret = ""

                instance?.appName = ""

 

요 부분에 직접 키 값을 넣으시면 될겁니다!

728x90
반응형