简体   繁体   English

没有这样的模块 'GoogleSignIn' Xcode 9.3 和 Swift 4.1

[英]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我还尝试了不同的故障排除方法,例如

  1. update pods更新豆荚
  2. Restarted Xcode重启Xcode

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。

  • pod deintegrate吊舱解体
  • pod cache clean --all pod 缓存清理 --all
  • pod install吊舱安装

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.

相关问题 Swift 4.1类属性和以'some'开头的子字符串(Xcode 9.3) - Swift 4.1 class attributes and son strings prefixed by 'some' (Xcode 9.3) 观察属性崩溃仪器(泄漏配置文件)Xcode 9.3(Swift 4.1) - Observing property crashes Instruments (Leaks profile) Xcode 9.3 (Swift 4.1) 无法在Xcode 9.3 / Swift 4.1中创建仅限于类的协议 - Can't create protocol that is restricted to Classes in Xcode 9.3 / Swift 4.1 xcode ios '没有这样的模块 GoogleSignIn' - xcode ios 'No such module GoogleSignIn' 如何在Swift 4.1和XCode 9.3中使用JSONDecoder解码嵌套的JSON数组和对象? - How to decode nested JSON array and object with JSONDecoder in swift 4.1 and xcode 9.3? Swift Autolayout在Xcode 9.3中不起作用 - Swift Autolayout doesn't work in Xcode 9.3 Xcode 9.3中Swift的-Osize构建设置是什么? - What is -Osize build setting for Swift in Xcode 9.3? 可以在XCode 9.3中使用Swift 4.0(4.0.3)吗? - Is it possible to use Swift 4.0 (4.0.3) with XCode 9.3? ios-Xcode 10:Razorpay pod“使用Swift 4.1编译的模块无法由Swift 4.2编译器导入” - ios - Xcode 10: Razorpay pod “module compiled with Swift 4.1 cannot be imported by the Swift 4.2 compiler” WKWebView不显示网站(Swift 4,iOS 11,Xcode 9.3) - WKWebView not displaying website (Swift 4, iOS 11, Xcode 9.3)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM