'您的应用程序缺少对以下网址方案的支持:com .googleusercontent.apps.xxx'

问题描述 投票:1回答:3

我在很多时候找到了问题和答案,但没有人帮助我:(。任何人都可以帮助我吗?

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>http://com.googleusercontent.apps.241222885422-bquei744e1i8q3h0r82k7fm31fbuej7m</string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>sixsquarepc08.GoogleIntegration</string>
        </array>
    </dict>
</array>

这是我的info.plist。

ios google-signin
3个回答
3
投票

对不起,这是我的错误...我在AppDelegate(GIDSignIn.sharedInstance().clientID = "241222885422-bquei744e1i8q3h0r82k7fm31fbuej7m.apps.googleusercontent.com ")中声明googleClienId时有一个不需要的空间。“。com”之后的空间是我的问题。它应该是( GIDSignIn.sharedInstance().clientID = "241222885422-bquei744e1i8q3h0r82k7fm31fbuej7m.apps.googleusercontent.com")like这个。请确保以正确的方式输入clientId。


2
投票

您可以在“网址类型”中添加“网址方案”

enter image description here


0
投票

刚刚解决了它,在appDelegate中你应该添加正确的url scheme,从地址开始,然后是数字,而不是相反。

试试这个,

AppDelegate(GIDSignIn.sharedInstance().clientID = "apps.googleusercontent.com.241222885422-bquei744e1i8q3h0r82k7fm31fbuej7m")
© www.soinside.com 2019 - 2024. All rights reserved.