react native ios Redefinition of module 'GoogleSignIn'

Viewed 22

I'm trying to install @react-native-google-signin/google-signin package, it works great in android, but fails to build in iOS, I have gone through the whole installation step by step multiple times as given in their doc/github, but still, the build failed, I'm stuck on this error: Redefinition of module 'GoogleSignIn'

Package.json:

dependencies: {
  "react": "18.0.0",
  "firebase": "^9.9.1",
  "react-native": "0.69.2",
  "@react-native-google-signin/google-signin": "^8.0.0",
},

enter image description here

Steps I followed to install the package: same as here: https://github.com/react-native-google-signin/google-signin, https://github.com/react-native-google-signin/google-signin/blob/master/docs/ios-guide.md

  1. yarn add @react-native-google-signin/google-signin (success)
  2. cd ios && pod install && cd .. (success)
  3. installed GoogleSignIn from swift package manager: https://developers.google.com/identity/sign-in/ios/start-integrating (success)
  4. added URL with scheme set to my REVERSED_CLIENT_ID (found inside GoogleService-Info.plist) (success)
  5. build clean from xcode and build. (failure)
  6. Encountered error as mentioned above and in the image.

Tried cleaning pod cache, removing pods and reinstalling everything, removing and reinstalling google signin package, didn't work...

Can someone help me with this issue?

0 Answers
Related