No such module 'GoogleSignIn' Xcode 9.3 and Swift 4.1

384 Views Asked by At

I am trying to login with Firebase Google Login. After installing the pods when i import header file 'GoogleSignIn' it gives me an error.

No such module 'GoogleSignIn'

enter image description here

Here is my pod file

enter image description here

I also tried different troubleshoot methods like

  1. update pods
  2. Restarted Xcode

But none of methods did work for me. How i fix this issue

2

There are 2 best solutions below

1
On

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). If the above process didn't work then reinstall the pods.

  • pod deintegrate
  • pod cache clean --all
  • pod install
0
On

I think @muhammad-qais answer will work. If not try removing the text "pod 'GoogleSignIn', '~> 3.0' " in podfile. Then pod install. It removes the existing google Sign in pod. And then install google sign in Pod from cocoapods.org as usual. Hope it works.