Thaina / google-signin-unity

Google Sign-In API plugin for Unity game engine. Works with Android and iOS.
Other
37 stars 0 forks source link

'GoogleSignIn/GIDAuthentication.h' file not found #22

Open yashs-devstree opened 9 hours ago

yashs-devstree commented 9 hours ago

Hello @Thaina

I'm getting this error in iOS build. Even though plugin have that file. This error is there in Unity 2022 LTS and Unity 6 LTS as well. Can you please guide me how can I resolve it?

/Builds/iOS/Libraries/Plugins/iOS/GoogleSignIn/GoogleSignIn.mm:17:9 'GoogleSignIn/GIDAuthentication.h' file not found

Thaina commented 9 hours ago

How you install this plugin and are there any other error in unity build?

I suspect that the build did not have google signin framework in xcode, can you check if google signin was added in xcode? And what if it was added manually?

https://stackoverflow.com/a/58480718/1260333

Or maybe it was because google have update iospod got google signin recently. I don't have macos machine right now so I am very sorry may not be any help because I can't test anything related to ios

yashs-devstree commented 8 hours ago

I've installed the plugin via git in UPM dependency and no there is no other error. If you want to check I can provide you access to my system or should I specify particular pod version to make it work?

Thaina commented 8 hours ago

Which branch you using?

yashs-devstree commented 8 hours ago

I'm using new migration branch

Thaina commented 8 hours ago

Then let's see what version the google signin was being resolved. Is it 7 or 8

yashs-devstree commented 7 hours ago

It's 7.1.0 image

Thaina commented 7 hours ago

Then let's check the build phase if it was include bundle and framework properly

image

yashs-devstree commented 7 hours ago

So in latest version there is no google utilities. I'm attaching screenshots below. image image

Thaina commented 7 hours ago

As I have mention, first let's try to add framework manually by + sign

Second. Let's see if the google at the build phase is version 7 or 8. I think it said 7 in plist but it may resolve 8 at the build phase

Maybe you might try to change sign from ~> 7.1.4 to more strict sign so that it will pull 7 to build in the meantime. But I don't remember what symbol to use

Some other fork might also solve this problem. But I can't test it myself right now