Google-signin: #import <RNGoogleSignin/RNGoogleSignin.h> file not found

Created on 11 Oct 2017  路  21Comments  路  Source: react-native-google-signin/google-signin

I have tried following the iOS guide several different times and each time I get this same error. I am linking and running pod install and then get the following error:

"Non-portable path to file '"RNGoogleSignin.h"'; specified path differs in case from file name on disk"

Running:
RN 0.48
react-native-google-signin 0.12

Any help is appreciated!

Most helpful comment

@xralphack I copied node_modules/react-native-google-signin/ios/GoogleSdk into ios folder, but it does not help. Could you please describe thoroughly what had you done to solve the problem? Thanks in advance

All 21 comments

@jacobbodkin are you using pods?
I had that issue, go to the ios folder on terminal and do pod init, then open the pod file and add your pods (firebase or google sign in), then run pod install. Then close your Xcode project and in the iOS folder open the workspace. you should see two "projects" yours and then Pods

same here, manually install, how can I fix it?

stuck in here for 3 days and I can finally make google signin work using the module below
https://github.com/joonhocho/react-native-google-sign-in

I guess no one is maintaining this module now?

@CamiloVega can you be more specific towards the end? I have followed your steps, but what do I do with the two "projects"?

@calcal12 thanks for the recommendation. I think I lost nearly 3 days too. Will give the module you mentioned a try instead

Same issue here with manual install. @xralphack were you able to solve it?

@jslok yes, I can use it. I had copied node_modules/react-native-google-signin/ios/GoogleSdk to ios folder

@xralphack I copied node_modules/react-native-google-signin/ios/GoogleSdk into ios folder, but it does not help. Could you please describe thoroughly what had you done to solve the problem? Thanks in advance

@DavitVosk Rebuilding the project solved that error for me (Product -> Build).

In file included from /Users/XXX/AppDelegate.m:16:
/Users/XXX/ios/build/Build/Products/Debug-iphonesimulator/include/RNGoogleSignin/RNGoogleSignin.h:7:9: fatal error: 'GoogleSignIn/GoogleSignIn.h' file not found

import

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

I'm still having issues.

building is successful using xcode but fails with react-native.

You can check this https://github.com/devfd/react-native-google-signin/issues/316 and follow the steps described there. It should help

It seems no one is maintaining this project. I'm getting this issue 3 days. Can't fix at all. May someone help me?

@itanhduy I cannot find a stable standalone google sign in module till now. you can try using expo. they provide google sign in sdk

@kaladivo very strange but it worked :| Rebuild the project and error went away

  1. copy ./node_modules/react-native-google-signin/ios/GoogleSdk to react-native's ios folder

  2. drag all files in GoogleSdk to Frameworks folder as following

screen shot 2018-05-21 at 2 55 26 pm

  1. clean and build

Try adding the framework files from react-native-google-signin into the Framework search paths (in Build Settings for Targets) as follows:

$(SRCROOT)/../node_modules/react-native-google-signin/ios/GoogleSdk

screen shot 2018-05-23 at 9 31 20 pm

The fix is now in master and will be included in the next release.

When will the next release be out and how can we fix this in the meantime..? Thanks :)

@Aung-Myint-Thein did you try 1.0.0-rc1 ?

I am just 0.12.0 and actually it is working fine. In one of the files, I just happened to type "-" :( .. Sorry for wrong alert. :D

@jacobbodkin Looks like you haven't added libRNGoogleSignin.a to the Build Phases -> Link binary with libraries:
screen shot 2018-07-25 at 2 40 27 pm

Please check it.

We have fixed this again in #458 (not release yet). Please open a new issue if the problems still persist.

Was this page helpful?
0 / 5 - 0 ratings