谷歌登录在IOS上崩溃,但在Android上运行良好
我已经做了所有的研究,但一旦我点击谷歌登录,应用程序就会崩溃谷歌登录在IOS上崩溃,但在Android上运行良好,ios,swift,flutter,dart,Ios,Swift,Flutter,Dart,我已经做了所有的研究,但一旦我点击谷歌登录,应用程序就会崩溃 <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLScheme
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.390674890211-klbqki2me0m8fjccmbkt..........</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb36858607......</string>
</array>
</dict>
</array>
我也试过,但还是失败了
final googleSignIn = GoogleSignIn(
scopes: [
'email',
'https://www.googleapis.com/auth/contacts.readonly',
],
hostedDomain: '',
clientId: '',
);
pubspec.ymal
firebase_auth: ^1.1.4
cloud_firestore: ^2.1.0
firebase_storage: ^8.0.6
google_sign_in: ^5.0.2
flutter_facebook_login: ^3.0.0
颤振运行-v文件
错误消息
PlatformException(google_sign_in, You must specify |clientID| for |GIDSignIn|, NSInvalidArgumentException, null)
如果有人有同样的问题,这就是为什么我必须回答,以备将来参考 下面是解决问题的链接
您在错误消息中得到了什么?是的……谷歌登录,您必须为GIDSignIn指定| clientID |。。。这是错误消息
PlatformException(google_sign_in, You must specify |clientID| for |GIDSignIn|, NSInvalidArgumentException, null)