web-dev-qa-db-ja.com

'アプリに次のURLスキームのサポートがありません:com .googleusercontent.apps.xxx'

私は何度も質問と回答を見つけましたが、誰も私を助けてくれません:(。誰か助けてくれませんか?

<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です。

これらは私が言及したいくつかの質問です、

4
Angel F Syrus

申し訳ありませんが、それは私の間違いでした... AppDelegate(GIDSignIn.sharedInstance().clientID = "241222885422-bquei744e1i8q3h0r82k7fm31fbuej7m.apps.googleusercontent.com ")でgoogleClienIdを宣言するときにそこに不要なスペースを入れました。「。com」の後のスペースが私の問題でした。( GIDSignIn.sharedInstance().clientID = "241222885422-bquei744e1i8q3h0r82k7fm31fbuej7m.apps.googleusercontent.com")このような。 clientIdを適切な方法で入力していることを確認してください。

4
Angel F Syrus

「URLタイプ」に「URLスキーム」を追加できます

enter image description here

4
Chirag Kothiya

ちょうどそれを解決しました、appDelegateであなたはアドレスで始まりそして数字で始まる正しいurl schemeを加えるべきであり、その逆ではありません。

これを試してみてください

AppDelegate(GIDSignIn.sharedInstance().clientID = "apps.googleusercontent.com.241222885422-bquei744e1i8q3h0r82k7fm31fbuej7m")
1
Shy Attoun