카카오 네비 길찾기 IOS에서 실행하려고 합니다.
info 에는 kakaonavi-sdk 추가하였고
예제처럼
let destination = NaviLocation(name: “des”, x: “321286”, y: “533707”)
guard let navigetUrl = NaviApi.shared.navigateUrl(destination: destination)else {
return
}
if UIApplication.shared.canOpenURL(navigetUrl){
UIApplication.shared.open(navigetUrl,options: [:],completionHandler: nil)
}else{
UIApplication.shared.open(NaviApi.webNaviInstallUrl,options: [:],completionHandler: nil)
}
하였으나 다음과 같은 에러가 나옵니다 무슨이유일까요
KakaoSDKNavi/NaviApi.swift:83: Fatal error: ‘try!’ expression unexpectedly raised an error: KakaoSDKCommon.SdkError.ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.MustInitAppKey, errorMessage: Optional(“initSDK(appKey:) must be initialized.”))
2023-07-18 14:46:34.232100+0900 ndjtour_poi[12311:2294199] KakaoSDKNavi/NaviApi.swift:83: Fatal error: ‘try!’ expression unexpectedly raised an error: KakaoSDKCommon.SdkError.ClientFailed(reason: KakaoSDKCommon.ClientFailureReason.MustInitAppKey, errorMessage: Optional(“initSDK(appKey:) must be initialized.”))