Firebase(电话身份验证)获取iOS错误:注册自定义URL方案 [英] Firebase (Phone Auth) Getting iOS error: register custom URL scheme

查看:89
本文介绍了Firebase(电话身份验证)获取iOS错误:注册自定义URL方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的flutter应用程序使用Firebase Auth(电话).我一直看到错误:'Please register custom URL scheme 'com.googleusercontent.apps.602546125958-5lk04ghhdfj5xxxxxxxx'.

My flutter app uses Firebase Auth (Phone). I keep seeing the error: 'Please register custom URL scheme 'com.googleusercontent.apps.602546125958-5lk04ghhdfj5xxxxxxxx'.

我已经将URL架构添加到info.plist中,如下所示,但是我遇到了同样的错误.

I have added the URL schema to the info.plist as follows, but I'm getting the same error.

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

推荐答案

从.plist文件中删除URL类型条目,然后执行以下步骤,.plist条目将自动生成.

步骤:

如果要添加多个URL方案,则可以单击"URL类型"中的+.

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

如有任何疑问,请发表评论.

Please comment if you have any questions.

很乐意提供帮助!

这篇关于Firebase(电话身份验证)获取iOS错误:注册自定义URL方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆