Trouble Shooting ✅: The following URL schemes found in your app are not in the correct format

바람찬허파·2025년 7월 31일
post-thumbnail

(1) 문제 상황

배포를 앞두고 repo에 노출되었던 kakaoNativeAppkey를 업데이트 하였다.
그러자, xcode cloud 내 빌드가 실패하였다.

에러 메시지

The following URL schemes found in your app are not in the correct format: [78c1.......]. URL schemes need to begin with an alphabetic character, and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC1738 for more detail.

결국 환경 변수 KAKAO_NATIVE_APP_KEY의 값이 숫자가 아닌 문자로 시작해야 한다는 것이다.

(2) 원인 분석

지난 kakao native app key는 문자로 시작하였지만, 새로 발급 받은 앱 키는 숫자로 시작하는 게 문제였다.

이전 xcode cloud 환경 변수 설정
KAKAO_NATIVE_APP_KEY = d62c10d33342a88bb175589d12be58fa

key 값 업데이트 (에러 발생)
KAKAO_NATIVE_APP_KEY = 78c1....

(3) 오류 해결

(3-1) kakao${kakaoNativeAppKey}로 변경

xcode cloud 환경변수 앞에 kakao를 붙여주면 된다.

오류 해결 후 xcode cloud 내 빌드 성공을 확인하였다!


(3-2) kakaoNativeAppKey 재발급

빌드는 되었으나, 실행 시 앱 관리자 설정 오류 (KOE101)이 발생하였다.
결국 문자로 시작하는 kakao native app key로 재발급 받아 해결하였다.

0개의 댓글