无法识别的选择器已发送到实例-Ionic Cordova Google+登录 [英] unrecognized selector sent to instance - Ionic cordova Google-plus login
本文介绍了无法识别的选择器已发送到实例-Ionic Cordova Google+登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用
- "@ ionic-native/google-plus":"^ 4.20.0"
- "cordova-plugin-googleplus":"^ 7.0.1"
- "cordova-plugin-cocoapod-support":"1.6.0",因为将Gogole插件与以下各项一起使用:
- "cordova-plugin-firebase":"git + https://github .com/vash15/cordova-plugin-firebase.git#master ,
- "@ionic-native/google-plus": "^4.20.0"
- "cordova-plugin-googleplus": "^7.0.1"
- "cordova-plugin-cocoapod-support": "1.6.0" because using the Gogole plugin together with:
- "cordova-plugin-firebase": "git+https://github.com/vash15/cordova-plugin-firebase.git#master",
调用this.googlePlus.logout()或this.googlePlus.login()时,会出现以下错误:
When calling this.googlePlus.logout() or this.googlePlus.login(), this gives following errors:
(logout)
-[__NSCFString gtm_stringByUnescapingFromURLArgument]: unrecognized selector
*** Terminating app due to uncaught exception 'NSInvalidArgumentException'
(login)
-[__NSDictionaryI gtm_httpArgumentsString]: unrecognized selector sent to instance 0x1d04789c0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException'
推荐答案
通过安装GoogleSignIn pod解决:
Solved by installing GoogleSignIn pod:
编辑platform/ios/Podfile并添加:
pod 'GoogleSignIn', '~> 4.4'
edit platforms/ios/Podfile and add:
pod 'GoogleSignIn', '~> 4.4'
或自动在您的构建街上:
perl -pi -e "s/end/\tpod 'GoogleSignIn', '~> 4.4'\nend/g" Podfile
Or automatically in your build street:
perl -pi -e "s/end/\tpod 'GoogleSignIn', '~> 4.4'\nend/g" Podfile
然后做
pod install
这篇关于无法识别的选择器已发送到实例-Ionic Cordova Google+登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文