2016-09-22 13 views
0

iOS 9 SDKでgoogle-plus-ios-sdk-1.7.1をテストしているときに、GPOSignIn.sharedInstance()を呼び出すと、内部Google Sign-In SDKの呼び出しでcanOpenURLを呼び出すと、IOS swift Google Plusでログイン

2016-09-22 14:12:56.135 MCN[305:49025] -canOpenURL: failed for URL: "com.google.gppconsent.2.4.1://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.4.1" 
2016-09-22 14:12:56.137 MCN[305:49025] -canOpenURL: failed for URL: "com.google.gppconsent.2.4.0://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.4.0" 
2016-09-22 14:12:56.139 MCN[305:49025] -canOpenURL: failed for URL: "com.google.gppconsent.2.3.0://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.3.0" 
2016-09-22 14:12:56.140 MCN[305:49025] -canOpenURL: failed for URL: "com.google.gppconsent.2.2.0://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.2.0" 
2016-09-22 14:12:56.141 MCN[305:49025] -canOpenURL: failed for URL: "com.google.gppconsent://" - error: "This app is not allowed to query for scheme com.google.gppconsent" 
2016-09-22 14:12:56.143 MCN[305:49025] -canOpenURL: failed for URL: "hasgplus4://" - error: "This app is not allowed to query for scheme hasgplus4" 

<key>LSApplicationQueriesSchemes</key> 
<array> 
    <string>com.example.foo</string> 
    <string>com.googleusercontent.apps.1234567890-abcdefghijklmnopqrstuvwxyz</string> 
    <string>com-google-gidconsent-google</string> 
    <string>com-google-gidconsent-youtube</string> 
    <string>com-google-gidconsent</string> 
    <string>com.google.gppconsent.2.4.1</string> 
    <string>com.google.gppconsent.2.4.0</string> 
    <string>googlechrome</string> 
    <string>googlechrome-x-callback</string> 
</array> 

2016-09-22 14:20:01.169 MCN[309:50443] -canOpenURL: failed for URL: "com.google.gppconsent.2.4.1://" - error: "(null)" 
2016-09-22 14:20:01.171 MCN[309:50443] -canOpenURL: failed for URL: "com.google.gppconsent.2.4.0://" - error: "(null)" 
2016-09-22 14:20:01.173 MCN[309:50443] -canOpenURL: failed for URL: "com.google.gppconsent.2.3.0://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.3.0" 
2016-09-22 14:20:01.175 MCN[309:50443] -canOpenURL: failed for URL: "com.google.gppconsent.2.2.0://" - error: "This app is not allowed to query for scheme com.google.gppconsent.2.2.0" 
2016-09-22 14:20:01.177 MCN[309:50443] -canOpenURL: failed for URL: "com.google.gppconsent://" - error: "This app is not allowed to query for scheme com.google.gppconsent" 

答えて

0

iは以下woのかもしれなると思うクラッシュ他の取得このスキームを追加あなたのためのrk。

<key>LSApplicationQueriesSchemes</key> 
    <array> 
     <string>com-google-gidconsent-google</string> 
     <string>com-google-gidconsent-youtube</string> 
     <string>com-google-gidconsent</string> 
     <string>com.google.gppconsent.2.4.1</string> 
     <string>com.google.gppconsent.2.4.0</string> 
     <string>googlechrome</string> 
     <string>googlechrome-x-callback</string> 
     <string>hasgplus4</string> 
     <string>com.google.gppconsent.2.3.0</string> 
     <string>com.google.gppconsent.2.2.0</string> 
     <string>com.google.gppconsent</string> 
    </array> 
+0

しかし、私は を使用は canOpenURL、この例外が返されました:URLに失敗しました: "com.google.gppconsent.2.4.1://" - エラー: "(ヌル)" 2016年9月22日15 :08:26.937 MCN [3954:1314690] -canOpenURL:URL「com.google.gppconsent.2.4.0://」でエラーが発生しました - エラー:「(null)」 2016-09-22 15:08:26.941 MCN [3954:1314690] -canOpenURL:URL「com.google.gppconsent.2.3.0://」でエラーが発生しました - エラー:「(null)」 –

関連する問題