[英]No such module 'GoogleSignIn' Xcode 9.3 and Swift 4.1
I am trying to login with Firebase Google Login.我正在尝试使用 Firebase Google Login 登录。 After installing the pods when i import header file 'GoogleSignIn' it gives me an error.
在我导入头文件“GoogleSignIn”时安装 Pod 后,它给了我一个错误。
No such module 'GoogleSignIn'没有这样的模块“GoogleSignIn”
Here is my pod file这是我的 pod 文件
I also tried different troubleshoot methods like我还尝试了不同的故障排除方法,例如
But none of methods did work for me.但是没有一种方法对我有用。 How i fix this issue
我如何解决这个问题
Maybe you can fix that by cleaning the build with cmd+shift+k and removing the derived data(xcode->preferences->location->derived_data_folder and remove the derived data folder).也许您可以通过使用 cmd+shift+k 清理构建并删除派生数据(xcode->preferences->location->derived_data_folder 并删除派生数据文件夹)来解决该问题。 If the above process didn't work then reinstall the pods.
如果上述过程不起作用,则重新安装 pod。
I think @muhammad-qais answer will work.我认为@muhammad-qais 的答案会奏效。 If not try removing the text "pod 'GoogleSignIn', '~> 3.0' " in podfile.
如果不尝试删除 podfile 中的文本“pod 'GoogleSignIn', '~> 3.0'”。 Then pod install.
然后pod安装。 It removes the existing google Sign in pod.
它会删除现有的 google 登录 pod。 And then install google sign in Pod from cocoapods.org as usual.
然后像往常一样从 cocoapods.org 安装 google sign in Pod。 Hope it works.
希望它有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.