Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/104.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Flatter myFriendlyChat在firebase google登录集成后崩溃_Ios_Firebase_Flutter - Fatal编程技术网

Ios Flatter myFriendlyChat在firebase google登录集成后崩溃

Ios Flatter myFriendlyChat在firebase google登录集成后崩溃,ios,firebase,flutter,Ios,Firebase,Flutter,我正在尝试codelabs firebase集成教程 我为我做了所有的步骤,我错过了iOS的一个步骤 在iOS上配置Google登录 在将CbundleUrlTypes添加到Info.plist而不是GoogleService-Info.plist之后,我的应用程序开始使用Google登录 我希望这能有所帮助。对我来说,我错过了iOS的一步 在iOS上配置Google登录 在将CbundleUrlTypes添加到Info.plist而不是GoogleService-Info.plist之后,我

我正在尝试codelabs firebase集成教程


我为我做了所有的步骤,我错过了iOS的一个步骤

在iOS上配置Google登录

在将CbundleUrlTypes添加到Info.plist而不是GoogleService-Info.plist之后,我的应用程序开始使用Google登录


我希望这能有所帮助。

对我来说,我错过了iOS的一步

在iOS上配置Google登录

在将CbundleUrlTypes添加到Info.plist而不是GoogleService-Info.plist之后,我的应用程序开始使用Google登录


我希望这能有所帮助。

打开Xcode>Runner>info.plist>右键单击>作为源代码打开>,然后检查您是否有:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <!-- TODO Replace this value: -->
            <!-- Copied from GoogleServices-Info.plist key REVERSED_CLIENT_ID -->
            <string>com.googleusercontent.apps.861823949799-vc35cprkp249096uujjn0vvnmcvjppkn</string>
        </array>
    </dict>
</array>
如果你也有Facebook登录,那么它应该是这样的:

<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>google</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>com.googleusercontent.apps.995426033439-887653460s954g71jfbf2t9730tl0jmi</string>
            <string></string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>facebook</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb25634XXXXXXXXXX</string>
        </array>
    </dict>
</array>

打开Xcode>Runner>info.plist>右键单击>以源代码形式打开>,然后检查是否有以下内容:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <!-- TODO Replace this value: -->
            <!-- Copied from GoogleServices-Info.plist key REVERSED_CLIENT_ID -->
            <string>com.googleusercontent.apps.861823949799-vc35cprkp249096uujjn0vvnmcvjppkn</string>
        </array>
    </dict>
</array>
如果你也有Facebook登录,那么它应该是这样的:

<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>google</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>com.googleusercontent.apps.995426033439-887653460s954g71jfbf2t9730tl0jmi</string>
            <string></string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>facebook</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb25634XXXXXXXXXX</string>
        </array>
    </dict>
</array>

由于某些原因,代码实验室中缺少此步骤。您必须将一个节从GoogleService-Info.plist复制到Info.plist。由于某些原因,请参阅代码实验室中缺少此步骤。您必须将一节从GoogleService-Info.plist复制到Info.plist。看见