[iOS] 앱간 점프시 오류 (This app is not allowed to query for scheme)

  [iOS] 앱간 점프시 오류 (This app is not allowed to query for scheme)

안녕하세요 물먹고하자 입니다. 앱간 점프로직을 구성하다가 "This app is not allowed to query for scheme" 에러가 발생할시 처리방법입니다.

// 멀린 앱으로 점프하기.

if let url = URL(string: Constants.BIZCUBE_MULLEN),

    UIApplication.shared.canOpenURL(url) {

    // 앱 깔려있는 경우

    UIApplication.shared.open(url, options: [:], completionHandler: nil)

}


  오류메시지

-canOpenURL: failed for URL: "bcmullen://" - error: "This app is not allowed to query for scheme bcmullen"



  처리방법

info.plist > LSApplicationQueriesSchemes 의 item 에 이동할 Schemes 를 추가해주면 됩니다.



  마무리

간단하게 이동할 수 있는 URL Schemes 예전(iOS 9이하?)에는 이동할 대상은 추가 안해도 되었었는데, 이동할 대상의 Schemes 을 추가해 줘야 합니다.

즐거운 코딩 되세요~

댓글

이 블로그의 인기 게시물

[iOS] 앱스토어 등록 전, 후 URL 알아보기

[Xcode] add Simulators (시뮬레이터 추가하기)

[iOS] 앱 아이콘 동적으로 변경하기 (Dynamically Change App icon)

[iOS] Device Name 가져오기 (for Swift) - 2022/09/22 update

[iOS] sizeToFit vs sizeThatFits 알아보기