본문 바로가기
Flutter/Flutter FAQ

Flutter Firebase (Phone Auth) iOS 오류 해결: 사용자 정의 URL 스키마 등록하기, Firebase (Phone Auth) Getting iOS error: register custom URL scheme

by 베타코드 2023. 12. 15.
반응형

질문


내 플러터 앱은 Firebase Auth (Phone)을 사용합니다. 계속해서 다음 오류가 발생합니다: 'Please register custom URL scheme 'com.googleusercontent.apps.602546125958-5lk04ghhdfj5xxxxxxxx''.

다음과 같이 info.plist에 URL 스키마를 추가했지만, 동일한 오류가 발생합니다.

이미지 설명을 입력하세요

2020-04-29 20:40:05.173962-0400 Runner[395:20944] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Please register custom URL scheme 'com.googleusercontent.apps.602546125958-5lk04ghhdfj5xxxxxxxx' in the app's Info.plist file.'
*** First throw call stack:
(0x1889035f0 0x188625bcc 0x1887f9b28 0x10086cfa8 0x100f056a0 0x102efb3b0 0x102e921bc 0x102eeb9cc 0x102ea2a68 0x102ea4dcc 0x1888821c0 0x188881edc 0x1888815b8 0x18887c5c8 0x18887bc34 0x1929c538c 0x18c9ae22c 0x10082addc 0x188703800)
libc++abi.dylib: terminating with uncaught exception of type NSException

답변


Delete you URL Type entry from .plist file and follow the steps, .plist entry will be automatically generated.

This works for Flutter as well

Steps:

enter image description here

You can click on + in URL Types if you want to add more than 1 URL Schemes.

Please comment if you have any questions.

Happy to help!

반응형

댓글