Google-signin: Use of undeclared identifier 'RNGoogleSignin'

Created on 17 Dec 2020  路  4Comments  路  Source: react-native-google-signin/google-signin

Steps to Reproduce

I just followed the provided instructions and I am able to successfully run the project. I can run from both xcode and command line with react-native run-ios, but when I try to make a production build (archive), the build fails with the following error:

Screenshot 2020-12-16 at 21 25 57

I tried googling it, but there is not so much about

Expected Behavior

The Xcode archiving complete successfully

Actual Behavior

xCode archive fails

Environment

Please provide

  • react-native version 0.63
  • @react-native-community/google-signin version 5.0.2
  • your Podfile, output of running pod install and cocoapods version (if applicable)

POD INSTALL OUTPUT

Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration
Adding a custom script phase for Pod RNFBCrashlytics: [RNFB] Crashlytics Configuration
Auto-linking React Native modules for target ReactNativeTemplate: RNCAsyncStorage, RNCMaskedView, RNFBAnalytics, RNFBApp, RNFBCrashlytics, RNFastImage, RNGestureHandler, RNGoogleSignin, RNLocalize, RNPermissions, RNReanimated, RNSVG, RNScreens, RNVectorIcons, react-native-camera, react-native-fbsdk, and react-native-safe-area-context
Analyzing dependencies
Fetching podspec for DoubleConversion from ../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
Fetching podspec for Folly from ../node_modules/react-native/third-party-podspecs/Folly.podspec
Fetching podspec for glog from ../node_modules/react-native/third-party-podspecs/glog.podspec
Downloading dependencies
Installing AppAuth (1.4.0)
Installing CocoaAsyncSocket (7.6.4)
Installing CocoaLibEvent (1.0.0)
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.63.3)
Installing FBReactNativeSpec (0.63.3)
Installing FBSDKCoreKit (7.1.1)
Installing FBSDKLoginKit (7.1.1)
Installing FBSDKShareKit (7.1.1)
Installing Firebase (7.0.0)
Installing FirebaseAnalytics (7.0.0)
Installing FirebaseCore (7.0.0)
Installing FirebaseCoreDiagnostics (7.1.0)
Installing FirebaseCrashlytics (7.0.0)
Installing FirebaseInstallations (7.1.0)
Installing Flipper (0.54.0)
Installing Flipper-DoubleConversion (1.1.7)
Installing Flipper-Folly (2.3.0)
Installing Flipper-Glog (0.3.6)
Installing Flipper-PeerTalk (0.0.4)
Installing Flipper-RSocket (1.1.0)
Installing FlipperKit (0.54.0)
Installing Folly (2020.01.13.00)
Installing GTMAppAuth (1.1.0)
Installing GTMSessionFetcher (1.5.0)
Installing GoogleAppMeasurement (7.0.0)
Installing GoogleDataTransport (8.0.1)
Installing GoogleSignIn (5.0.2)
Installing GoogleUtilities (7.1.0)
Installing OpenSSL-Universal (1.0.2.20)
Installing Permission-Camera (3.0.0-beta.2)
Installing Permission-Microphone (3.0.0-beta.2)
Installing PromisesObjC (1.2.11)
Installing RCTRequired (0.63.3)
Installing RCTTypeSafety (0.63.3)
Installing RNCAsyncStorage (1.11.0)
Installing RNCMaskedView (0.1.10)
Installing RNFBAnalytics (8.0.1)
Installing RNFBApp (9.0.0)
Installing RNFBCrashlytics (8.5.2)
Installing RNFastImage (8.1.5)
Installing RNGestureHandler (1.6.1)
Installing RNGoogleSignin (5.0.0)
Installing RNLocalize (1.4.3)
Installing RNPermissions (3.0.0-beta.2)
Installing RNReanimated (1.9.0)
Installing RNSVG (12.1.0)
Installing RNScreens (2.8.0)
Installing RNVectorIcons (6.6.0)
Installing React (0.63.3)
Installing React-Core (0.63.3)
Installing React-CoreModules (0.63.3)
Installing React-RCTActionSheet (0.63.3)
Installing React-RCTAnimation (0.63.3)
Installing React-RCTBlob (0.63.3)
Installing React-RCTImage (0.63.3)
Installing React-RCTLinking (0.63.3)
Installing React-RCTNetwork (0.63.3)
Installing React-RCTSettings (0.63.3)
Installing React-RCTText (0.63.3)
Installing React-RCTVibration (0.63.3)
Installing React-callinvoker (0.63.3)
Installing React-cxxreact (0.63.3)
Installing React-jsi (0.63.3)
Installing React-jsiexecutor (0.63.3)
Installing React-jsinspector (0.63.3)
Installing ReactCommon (0.63.3)
Installing SDWebImage (5.9.4)
Installing SDWebImageWebPCoder (0.4.1)
Installing Yoga (1.14.0)
Installing YogaKit (1.18.1)
Installing boost-for-react-native (1.63.0)
Installing glog (0.3.5)
Installing libwebp (1.1.0)
Installing nanopb (2.30906.0)
Installing react-native-camera (3.40.0)
Installing react-native-fbsdk (2.0.0)
Installing react-native-safe-area-context (2.0.0)
Generating Pods project
Integrating client project
Pod installation complete! There are 66 dependencies from the Podfile and 78 total pods installed.

  • version of Android, gradle, android plugin for gradle, play-services-auth and version of the Google Play Services app on your phone (if applicable)
  • version of iOS (if applicable)
馃敠 Help Wanted

Most helpful comment

馃槺馃槺馃槺 I am so sorry @vonovak , I'm not so skilled in native iOS, I didn't notice it at all.
Thank so much!

All 4 comments

hello, what does you appdelegate.m look like?

Hello,
here is the relevant part of AppDelegate.m, I have highlighted the line were the error happens

Screenshot 2020-12-23 at 13 31 29

Seems like you have placed the import after a if DEBUG directive, try to move it up, please

馃槺馃槺馃槺 I am so sorry @vonovak , I'm not so skilled in native iOS, I didn't notice it at all.
Thank so much!

Was this page helpful?
0 / 5 - 0 ratings