Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'GoogleSignIn/GIDSignIn.h' file not found #188

Open
TheChieftain1990 opened this issue Jul 9, 2021 · 7 comments
Open

'GoogleSignIn/GIDSignIn.h' file not found #188

TheChieftain1990 opened this issue Jul 9, 2021 · 7 comments

Comments

@TheChieftain1990
Copy link

TheChieftain1990 commented Jul 9, 2021

I am getting this issue when I build my project to Xcode.

'GoogleSignIn/GIDSignIn.h' file not found

This is in the file GoogleSignIn.h on the line to import <GoogleSignIn/GIDSignIn.h>.

I have no idea what is happening here. I followed the setup steps, and got it working just fine on Android, but I can't shake this issue on iOS. I've read through every forum response I could find about this issue. I've tried repeating people's checklists, adding things to the build settings, manually installing the pods in the Xcode project, and nothing works.

What strikes me as curious is the GoogleSignIn.h and GoogleSignInAppController.h are both already in the package when you import it, but this is not. Is this supposed to be installed from CocoaPods, or is it supposed to already be in the package? What am I doing wrong here that I'm not getting this file in my project?

@tylrpage
Copy link

tylrpage commented Jul 14, 2021

Use this branch if you are not already, to support 5.0.0 https://github.com/lukezbihlyj/google-signin-unity

GoogleSignIn/GIDSignIn.h is a dependency. It gets mentioned in GoogleSignIn/Editor/GoogleSignInDependencies.xml, then a post build script should pick that up and add it to your pod file when you build the project for iOS. That post build operation is done by the External Dependency Manager (formerly called play services resolver). You might be missing it; do you see it in Assets->External Dependency Manager? If not get it here: https://github.com/googlesamples/unity-jar-resolver

Btw, iOS SDK updated with breaking changes in 6.0.0, change GoogleSignIn/Editor/GoogleSignInDependencies.xml, replace >= 5.0.0 to = 5.0.2

@TheChieftain1990
Copy link
Author

TheChieftain1990 commented Jul 30, 2021

Thanks for your suggestion. I ended up manually adding the necessary files, which kinda ruins the purpose of dependency management, but I needed to get this stuff working asap.

What you're describing makes sense to me. I'm aware of the resolver and how it's supposed to import the necessary files, but for some reason that isn't happening. That's what I don't really understand, why it doesn't import the stuff it's supposed to import. Perhaps changing to 5.0.2 will help.

When I imported the package, it came with a version of the resolver. It's interesting to note that mine is still called Play Services Resolver. It doesn't seem like that should be a problem, as the package should include a working, compatible version of the resolver. Still, it might be worth updating to the External Dependency Manager.

@dhruvmodhapp
Copy link

Use this branch if you are not already, to support 5.0.0 https://github.com/lukezbihlyj/google-signin-unity

GoogleSignIn/GIDSignIn.h is a dependency. It gets mentioned in GoogleSignIn/Editor/GoogleSignInDependencies.xml, then a post build script should pick that up and add it to your pod file when you build the project for iOS. That post build operation is done by the External Dependency Manager (formerly called play services resolver). You might be missing it; do you see it in Assets->External Dependency Manager? If not get it here: https://github.com/googlesamples/unity-jar-resolver

Btw, iOS SDK updated with breaking changes in 6.0.0, change GoogleSignIn/Editor/GoogleSignInDependencies.xml, replace >= 5.0.0 to = 5.0.2

Helpful. To automatically create Google Library with Pod. Solved my issue. Saved my time. Thanks

@TianRy1337
Copy link

TianRy1337 commented Nov 23, 2021

Hi I have the same issue here
This happen after I added FirebaseMessaging 8.6.2 in my project
I have no idea what is happening here but it works in Android built
I already replace my <GoogleSignInDependencies.xml> 5.0.0 to = 5.0.2 before I added FirebaseMessaging
and make sure I have the latest Google.IOSResolver but it still not fix this problem
I also try to down my version back to 1.2.166 from 1.2.167


Hey I fixed this problem now, In Cocoapod 1.10.2 only support Firebase ios pod "8.9.0"
but my setting is "8.9.1". So i fixed it and disable my Bitcode. And it work

@FernandoSLuz
Copy link

Hi I have the same issue here This happen after I added FirebaseMessaging 8.6.2 in my project I have no idea what is happening here but it works in Android built I already replace my <GoogleSignInDependencies.xml> 5.0.0 to = 5.0.2 before I added FirebaseMessaging and make sure I have the latest Google.IOSResolver but it still not fix this problem I also try to down my version back to 1.2.166 from 1.2.167

Hey I fixed this problem now, In Cocoapod 1.10.2 only support Firebase ios pod "8.9.0" but my setting is "8.9.1". So i fixed it and disable my Bitcode. And it work

@TianRy1337 Could you help me explaining this in more details? I have the same issue

@TianRy1337
Copy link

@FernandoSLuz Hi, Sorry for Reply you late.
I saw you DM my LinkedIn Profile say you already fixed your problem by changing the version in the Dependencies files. Could you shared your Method or What Firebase Version and Pod version you use? It'll help other people. thanks a lot

@FernandoSLuz
Copy link

@FernandoSLuz Hi, Sorry for Reply you late. I saw you DM my LinkedIn Profile say you already fixed your problem by changing the version in the Dependencies files. Could you shared your Method or What Firebase Version and Pod version you use? It'll help other people. thanks a lot

Sure, the solution to accomplish that following @TianRy1337 's line of though was this:
If you have Firebase installed in your Unity project, just open the dependencies (XML) in the Assets/Firebase/Editor folder, and change the version of all firebase versions in the iosPods section inside the xml's to 8.9.0.
Keep in mind that this version is pretty old, and I don't know for how long it will be supported, so if anyone has a better approach, let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants