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

[New Release HERE!!!] Update native sdk version to 6.0.2 & REFECTOR iOS Adapter #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CodeMasterYi
Copy link

@CodeMasterYi CodeMasterYi commented Dec 16, 2021

Update native sdk version to latest & refactor iOS adapter!

before google's future new release(greater than 1.0.4 released in 2018), you guys can
try import this. [email protected]
It depends on EDM4U(aka. unity-jar-resolver).

https://github.com/CodeMasterYi/google-signin-unity/releases

Copy link

@collectivemass collectivemass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on iOS and works great! Many thanks

@CodeMasterYi
Copy link
Author

Tested on iOS and works great! Many thanks

Would you fire a new release?

@collectivemass
Copy link

collectivemass commented Oct 27, 2022 via email

@CodeMasterYi
Copy link
Author

I don't work for Google, can I do that?

On Thu, Oct 27, 2022 at 12:29 AM Spermoverflow @.> wrote: Tested on iOS and works great! Many thanks Would you fire a new release? — Reply to this email directly, view it on GitHub <#205 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALIT6YXYJDKFRSKV6DKDP3WFIVMPANCNFSM5KFHXUMA . You are receiving this because you commented.Message ID: @.>
-- Roger Miller | Collective Mass | 424 603 7827

Aha. I mistakenly thought you work for Google~

@karstenkx
Copy link

karstenkx commented Dec 14, 2022

This could help me and my guys but I have a hard time to build this, I am not much in Java anymore since C# exists, can anyone tell me what to do to build this? I tried on Windows WSL 2 and got the below error.

winux@MSIGF63:~/gis/google-signin-unity$ ./build_all.sh --scan
~/gis/google-signin-unity ~/gis/google-signin-unity

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '11.0.17'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
~/gis/google-signin-unity
winux@MSIGF63:~/gis/google-signin-unity$ sudo update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-11-openjdk-amd64/bin/java
Nothing to configure.
winux@MSIGF63:~/gis/google-signin-unity$

thanks for any help

Edit1: After following this guide https://www.javaprogramto.com/2021/11/could-not-determine-java-version.html
I stuck now with

winux@MSIGF63:~/gis/google-signin-unity$ ./build_all.sh --scan
~/gis/google-signin-unity ~/gis/google-signin-unity

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':native-googlesignin'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
~/gis/google-signin-unity
winux@MSIGF63:~/gis/google-signin-unity$

gradle version is at 5.4.1

About that sdk issues there is an addon to the readme in this fork https://github.com/wakawa2003/google-signin-unity-fixed
It would be really great if someone could build this and put it somewhere to download for everyone

@CodeMasterYi
Copy link
Author

CodeMasterYi commented Dec 16, 2022

This could help me and my guys but I have a hard time to build this, I am not much in Java anymore since C# exists, can anyone tell me what to do to build this? I tried on Windows WSL 2 and got the below error.

winux@MSIGF63:~/gis/google-signin-unity$ ./build_all.sh --scan
~/gis/google-signin-unity ~/gis/google-signin-unity

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '11.0.17'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
~/gis/google-signin-unity
winux@MSIGF63:~/gis/google-signin-unity$ sudo update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-11-openjdk-amd64/bin/java
Nothing to configure.
winux@MSIGF63:~/gis/google-signin-unity$

thanks for any help

Edit1: After following this guide https://www.javaprogramto.com/2021/11/could-not-determine-java-version.html I stuck now with

winux@MSIGF63:~/gis/google-signin-unity$ ./build_all.sh --scan
~/gis/google-signin-unity ~/gis/google-signin-unity

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':native-googlesignin'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
~/gis/google-signin-unity
winux@MSIGF63:~/gis/google-signin-unity$

gradle version is at 5.4.1

About that sdk issues there is an addon to the readme in this fork https://github.com/wakawa2003/google-signin-unity-fixed It would be really great if someone could build this and put it somewhere to download for everyone

So sorry for the inconvenience.
But you should not build it yourself and you can do following this:

  1. import package @ here first https://github.com/googlesamples/google-signin-unity/releases/tag/v1.0.4
  2. modify the files that included in this PR

If it works, it would be nice to let me know. @karstenkx

@karstenkx
Copy link

karstenkx commented Dec 17, 2022

If it works, it would be nice to let me know. @karstenkx

Yes, in the end It worked when I installed that stone old "latest" release and then use the files in your PR , put them into the project overwritting , we both know a proper build and package release would be better

@CodeMasterYi
Copy link
Author

If it works, it would be nice to let me know. @karstenkx

Yes, in the end It worked when I installed that stone old "latest" release and then use the files in your PR , put them into the project overwritting , we both know a proper build and package release would be better

@karstenkx
I'm sorry for that.
I havent tried to rebuild a new package release.
I dont work for google.
I just provide a patch fix for some else to work around the not up to date issue.
If you have time to do so, that would be wonderful.
Nice day!

@MrKhan2022
Copy link

Guy i need a help i am getting this error
'GoogleSignIn/GIDAuthentication.h' file not found
Screenshot 2022-12-19 at 6 08 44 PM

@MrKhan2022
Copy link

Guy i need a help i am getting this error 'GoogleSignIn/GIDAuthentication.h' file not found Screenshot 2022-12-19 at 6 08 44 PM

image

@Crazak
Copy link

Crazak commented Dec 19, 2022

Having the same issue as @MrKhan2022. I'm pretty sure it was working a few days ago. Any help would be appreciated.

Edit: If anyone still struggling with this, changing the dependency version from >=6.0.2 to =6.2.4 solved it for me.

@CodeMasterYi
Copy link
Author

CodeMasterYi commented Dec 22, 2022

Having the same issue as @MrKhan2022. I'm pretty sure it was working a few days ago. Any help would be appreciated.

Edit: If anyone still struggling with this, changing the dependency version from >=6.0.2 to =6.2.4 solved it for me.

@Crazak Glad to hear that you have work around the issue.

Edit: May I have your unity version and xcode version(with macos version)?

@MrKhan2022
Copy link

Unity Version: 2021.3.8f1
Xcode version: 13.2.1
MacOs: macOS Big Sur version 11.7.1
@CodeMasterYi

@Amrazyan
Copy link

Amrazyan commented Jan 1, 2023

Guys please help me, still getting error like @MrKhan2022 described

@Amrazyan
Copy link

Amrazyan commented Jan 1, 2023

Screen Shot 2023-01-01 at 12 41 24

.

@CodeMasterYi
Copy link
Author

Guys please help me, still getting error like @MrKhan2022 described

I cant find clientID, uiDelegate and delegate in my implementation.

@CodeMasterYi
Copy link
Author

[email protected]
@Amrazyan unzip this file and try import this unity package that modified by me.

@matbn
Copy link

matbn commented Jan 10, 2023

Hi, I'm trying to build this, but I'm having a similar error to MrKhan, but in my case is another file (GIDSignIn), I've tried creating a new project and importing everything cited on this thread, but it still happens, even switch from 6.0.2 to 6.2.4.
I'm testing using the latest xcode with macOS Ventura, with an apple M1.
I'm not using Firebase, just the GoogleSignIn.

image

@CodeMasterYi
Copy link
Author

Hi, I'm trying to build this, but I'm having a similar error to MrKhan, but in my case is another file (GIDSignIn), I've tried creating a new project and importing everything cited on this thread, but it still happens, even switch from 6.0.2 to 6.2.4. I'm testing using the latest xcode with macOS Ventura, with an apple M1. I'm not using Firebase, just the GoogleSignIn.

image

hi, @matbn
do you delete what you import before and then import the .unitypackage provided in this thread?

@matbn
Copy link

matbn commented Jan 11, 2023

@CodeMasterYi yes, and I've also tried with a fresh project too, just importing the plugin-1.0.4, your files and the sample scene

@CodeMasterYi
Copy link
Author

CodeMasterYi commented Jan 12, 2023

@CodeMasterYi yes, and I've also tried with a fresh project too, just importing the plugin-1.0.4, your files and the sample scene

[email protected] @Amrazyan unzip this file and try import this unity package that modified by me.

hi @matbn
what about only importing the .unitypackage file provided in this thread?
this package is exported from my project which is working well.

one more thing, it depends this plugin https://github.com/googlesamples/unity-jar-resolver/releases/tag/v1.2.175
and this plugin depends on cocopods which downloads the remote dependencies on iOS Player.

@matbn
Copy link

matbn commented Jan 13, 2023

@CodeMasterYi using only your package with the jar resolver I could build, thank you for the help and for the updates.
I still haven't tried the sign-in cause I'm having a little problem with the plist thing (kinda new to apple), but will update after fix this.

@CodeMasterYi
Copy link
Author

@matbn Glad to hear that.
If there is any problem about this package, let me know.

@ingames
Copy link

ingames commented Jul 25, 2023

@way2tushar
This has worked for me to be able to fix the problem and generate the xCode project correctly from Unity.
#225 (comment)

In my case I've only changed this path:
"/Users/{user}/.cocoapods/repos/cocoapods/Specs/d/4/0/GoogleSignIn/5.0.2/GoogleSignIn.podspec.json"
To
"/Users/{user}/.cocoapods/repos/cocoapods/Specs/d/4/0/GoogleSignIn/6.0.2/GoogleSignIn.podspec.json"

@devendraatxpertaapp
Copy link

@ingames Hi I am still stuck on this can you please explain bit more

Firebase version 10.11.0

GithubError

My Pod FIles

PodFiles

@way2tushar
Copy link

I fixed the issue by changing this file
"/Users/{user}/.cocoapods/repos/cocoapods/Specs/d/4/0/GoogleSignIn/6.0.2/GoogleSignIn.podspec.json"

change "GTMSessionFetcher/Core": "~> 1.1" under dependencies to "GTMSessionFetcher/Core": "< 4.0"

Screenshot 2023-07-29 at 4 47 50 PM

@ingames
Copy link

ingames commented Jul 29, 2023

@devendraatxpertaapp
I did this:
#205 (comment)

@devendraatxpertaapp
Copy link

@way2tushar @ingames
Thank you I finally solved it and did the same as you guys have mentioned.
USE this plugin https://github.com/googlesamples/google-signin-unity/files/10341935/GoogleSignIn%40JokeMaker.unitypackage.zip
Used external-dependency-manager-1.2.175 and it worked.

@Thaina
Copy link

Thaina commented Aug 21, 2023

OK. So it seem this repo is not maintain anymore? Even the fix pull request are not being merged for nearly 2 years

@CodeMasterYi
Copy link
Author

OK. So it seem this repo is not maintain anymore? Even the fix pull request are not being merged for nearly 2 years

Maybe they forget it or build another new one.

@furkanbct
Copy link

furkanbct commented Aug 24, 2023

image
image
When i click google sign in button unity shows this error. On ios build it crashes. Anyone have any ideas ?

@carlossalasamper
Copy link

We need a hero 🦸🏻‍♂️

@ArnauKokoro
Copy link

ArnauKokoro commented Sep 15, 2023

Using this package [email protected] and changing ~> 6.0.2 to 6.2.4 on dependency file works for me!!

Update native sdk version to latest & refactor iOS adapter!

before google's future new release(greater than 1.0.4 released in 2018), you guys can try import this. [email protected] It depends on EDM4U(aka. unity-jar-resolver).

https://github.com/CodeMasterYi/google-signin-unity/releases

Having the same issue as @MrKhan2022. I'm pretty sure it was working a few days ago. Any help would be appreciated.

Edit: If anyone still struggling with this, changing the dependency version from >=6.0.2 to =6.2.4 solved it for me.

@DulgiKim
Copy link

DulgiKim commented Sep 19, 2023

Recently, there was 7.0.0 version of GoogleSign-iOS. So I modified Dependecies (iosPods target version to > 6.0.2)
If you're using the latest Firebase plug-in, you have to do this because of GTMSessionFether and GTMAppAuth

Then, I found some functions are deleted, changed and GIDAuthentication header has been moved to private

Here's a modified package with googlesignin.mm file
GoogleSignIn.zip

@DarshanSahay
Copy link

@DulgiKim Thank you very much my friend. I have been trying to solve this issue past 10 hours straight. I wish i had seen your comment earlier. You are such a god send fellow. Thanks a lot.

@Thaina
Copy link

Thaina commented Oct 12, 2023

I have patch this repo into UPM system https://github.com/Thaina/google-signin-unity

You can added this link https://github.com/Thaina/google-signin-unity.git with UPM UI

Please let me know are there any problem from my package

@dharmeshmp
Copy link

@Thaina
Thanks for the UPM package. Now we can build successfully for iOS.
But now we are facing this error

ERROR: Unable to configure Firebase app (Configuration fails. It may be caused by an invalid GOOGLE_APP_ID in GoogleService-Info.plist or set in the customized options.)

@Thaina
Copy link

Thaina commented Oct 13, 2023

@Thaina Thanks for the UPM package. Now we can build successfully for iOS. But now we are facing this error

ERROR: Unable to configure Firebase app (Configuration fails. It may be caused by an invalid GOOGLE_APP_ID in GoogleService-Info.plist or set in the customized options.)

Hmm that's weird. For me it's opposite. I need to add firebase core package tgz (use tgz in upm) to make it handle plist file for me to make the build success

Could you make very simple project that fail so I can take a look (but I don't have access to macos machine until next week though)

@victornor
Copy link

victornor commented Oct 30, 2023

Does anybody else have google signin crash immediately on ios with no error message on PInvokeFunc(GoogleSignIn_SignIn) in GoogleAuth?

@wingjjzhang
Copy link

Using this package [email protected] and changing ~> 6.0.2 to 6.2.4 on dependency file works for me!!

Update native sdk version to latest & refactor iOS adapter!
before google's future new release(greater than 1.0.4 released in 2018), you guys can try import this. [email protected] It depends on EDM4U(aka. unity-jar-resolver).
https://github.com/CodeMasterYi/google-signin-unity/releases

Having the same issue as @MrKhan2022. I'm pretty sure it was working a few days ago. Any help would be appreciated.
Edit: If anyone still struggling with this, changing the dependency version from >=6.0.2 to =6.2.4 solved it for me.

yes! 6.0.2 to 6.2.4 wroked!!!nice

@Anand-CIS
Copy link

[email protected]

Can any one know how to import this package in unity project because everytime I am importing it is giving error in unity "Unable to import the package."

Screenshot 2024-02-06 at 8 25 48 PM

@CodeMasterYi
Copy link
Author

CodeMasterYi commented Feb 7, 2024

[email protected]

Can any one know how to import this package in unity project because everytime I am importing it is giving error in unity "Unable to import the package."

Screenshot 2024-02-06 at 8 25 48 PM

Unzip this zip file first, and you will get an file that ends with '.unitypackage'. import it.

@sameehj
Copy link

sameehj commented Feb 11, 2024

UPDATE:
I managed to get it working finally, I am using the latest firebase sdk (11+).
changing the dependency version from >=6.0.2 to =6.2.4 solved it for me


I am using the latest firebase sdk + googlesingin plugin from the comment below. The code compiles, I have added debug code to the .mm file to check if the info list is loaded

Attempting to log in with Google
Google Sign-In configured.
Debug: Starting GoogleSignIn configuration
Debug: GoogleService-Info.plist found at path: /private/var/containers/Bundle/Application/5E7AB3A4-1903-4804-8FE5-00B19F586595/BananaMonkey.app/GoogleService-Info.plist
Debug: GoogleService-Info.plist loaded into NSDictionary successfully.
Debug: CLIENT_ID found: 645023687813-kcfpuo3qnuhrd6hum2qblh6gdqp15a19.apps.googleusercontent.com
Debug: Configuring with webClientId: 645023687813-gte2h8tc7uhmok80q7oq11emhsnqnr1q.apps.googleusercontent.com
Debug: GIDConfiguration set successfully.
Debug: GoogleSignIn configuration completed.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'No active configuration. Make sure GIDClientID is set in Info.plist.'

but still it's not working, will update if it works soon

Recently, there was 7.0.0 version of GoogleSign-iOS. So I modified Dependecies (iosPods target version to > 6.0.2) If you're using the latest Firebase plug-in, you have to do this because of GTMSessionFether and GTMAppAuth

Then, I found some functions are deleted, changed and GIDAuthentication header has been moved to private

Here's a modified package with googlesignin.mm file GoogleSignIn.zip

@sameehj
Copy link

sameehj commented Feb 26, 2024

Okay Few weeks later, still struggling with this.

I got this error with unity 2023.2.5f1

I got firebase sdk9.6 to work on IOS with the fix (see in my previous comment above)

but then the android didn't work with 9.6

so I updated to Firebase sdk 11.6 and the android works after resolving some issues with additional androids libraries included by the resolver.

but then the code doesn't work on iOS. I managed to get it to compile but now I have a crash. to compile I did three changes, not sure which one solved it:

  1. Used the plugin in [New Release HERE!!!] Update native sdk version to 6.0.2 & REFECTOR iOS Adapter #205 (comment)
  2. "/Users/{user}/.cocoapods/repos/cocoapods/Specs/d/4/0/GoogleSignIn/7.0.0/GoogleSignIn.podspec.json" changed GTMSessionFetcher/Core to be < 4.0 alone (there was additional >=2.1, deleted it)
  3. in googledependecies.xml changed <iosPod name="GoogleSignIn" version=">= 7.0.0" bitcodeEnabled="true"

Now the error I'm getting is:

Attempting to log in with Google
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
LoginFormHandler:OnLoginWithGoogleButtonClicked()
UnityEngine.Events.UnityEvent:Invoke()
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
UnityEngine.EventSystems.StandaloneInputModule:Process()

Google Sign-In configured.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
FirebaseManager:SignInWithGoogle(Action2) UnityEngine.Events.UnityEvent:Invoke() UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
UnityEngine.EventSystems.StandaloneInputModule:Process()

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'No active configuration. Make sure GIDClientID is set in Info.plist.'
*** First throw call stack:
(0x192ec269c 0x18b16fc80 0x192f47490 0x10922970c 0x109228b8c 0x1090a0e24 0x10a8476f0 0x10a846790 0x10a8280dc 0x10bf08a00 0x10a98a4c0 0x10c21e7dc 0x10c21dbfc 0x10c21d8b8 0x1092d99c8 0x1092d9904 0x109615d30 0x109628fb4 0x109637adc 0x1093abd50 0x1093abc9c 0x109484f14 0x109478058 0x109478098 0x1094783f0 0x109ec379c 0x109097950 0x1944112cc 0x1944144b4 0x194413fc0 0x194493290 0x1950ab7e4 0x1950aaed4 0x1950aaf90 0x192e0d12c 0x192e0c3a8 0x192e0ab5c 0x192e09898 0x192e09478 0x1d638a4f8 0x19522d62c 0x19522cc68 0x109097588 0x100d5412c 0x1b5b42dcc)
Uncaught exception: NSInvalidArgumentException: No active configuration. Make sure GIDClientID is set in Info.plist.
(
0 CoreFoundation 0x0000000192ec26a8 BE405D8A-5464-37A3-A17E-1068DB404B23 + 968360
1 libobjc.A.dylib 0x000000018b16fc80 objc_exception_throw + 60
2 CoreFoundation 0x0000000192f47490 BE405D8A-5464-37A3-A17E-1068DB404B23 + 1512592
3 UnityFramework 0x000000010922970c -[GIDSignIn signInWithOptions:] + 464
4 UnityFramework 0x0000000109228b8c -[GIDSignIn signInWithPresentingViewController:hint:completion:] + 72
5 UnityFramework 0x00000001090a0e24 GoogleSignIn_SignIn + 112
6 UnityFramework 0x000000010a8476f0

@sameehj
Copy link

sameehj commented Feb 26, 2024

Firebase SDK 11.0 + IOS now works

Fixed the error by adding the GID + URL schemes required by Googleiosignin 7.0.0. Created the following build script and placed it in Assets/Editor to make sure it runs on build

#if UNITY_IOS
using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;

public class PostBuildProcessor
{
[PostProcessBuild]
public static void OnPostprocessBuild(BuildTarget buildTarget, string path)
{
if (buildTarget == BuildTarget.iOS)
{
// Path to Info.plist
string plistPath = Path.Combine(path, "Info.plist");
PlistDocument plist = new PlistDocument();
plist.ReadFromString(File.ReadAllText(plistPath));

        // Get or create CFBundleURLTypes array
        PlistElementArray bundleUrlTypes = plist.root.CreateArray("CFBundleURLTypes");

        // Add a dictionary for Google URL scheme
        PlistElementDict dict = bundleUrlTypes.AddDict();
        PlistElementArray urlSchemes = dict.CreateArray("CFBundleURLSchemes");
        urlSchemes.AddString("com.googleusercontent.apps.YOURCLIENTID"); // Adjust this for your project

        // Add GIDClientID key
        plist.root.SetString("GIDClientID", "YOURCLIENTID.apps.googleusercontent.com"); // Adjust this too

        // Write back to Info.plist
        File.WriteAllText(plistPath, plist.WriteToString());
    }
}

}
#endif

@Thaina
Copy link

Thaina commented Jun 13, 2024

Greeting Everyong

My fork of this package that enabled UPM has new branch. Now it was upgraded to use the latest version of signin library for ios and CredentialManager for android because google signin for both platform has recommendation for migration https://developer.android.com/identity/sign-in/legacy-gsi-migration
https://developers.google.com/identity/sign-in/ios/quick-migration-guide)

Here is my forked repo https://github.com/Thaina/google-signin-unity/tree/newmigration

You can compare the changes here #256

Or just add these 2 lines to your manifest.json project to import this package into your project

{
  "dependencies": {
    "com.google.external-dependency-manager": "https://github.com/googlesamples/unity-jar-resolver.git?path=upm",
    "com.google.signin": "https://github.com/Thaina/google-signin-unity.git#newmigration",
    ...
  }
}

external-dependency-manager is required dependency, if it already in your project then you can just omit that line

@ozansensei2
Copy link

I can confirm that after using this package https://github.com/CodeMasterYi/google-signin-unity/releases and changing the line in the GoogleSignInDependencies.xml as below worked for me. Thank you so much

<iosPod name="GoogleSignIn" version="~> 6.2.4" bitcodeEnabled="false"
        minTargetSdk="6.0">

@Won-gyu
Copy link

Won-gyu commented Jul 13, 2024

Recently, there was 7.0.0 version of GoogleSign-iOS. So I modified Dependecies (iosPods target version to > 6.0.2) If you're using the latest Firebase plug-in, you have to do this because of GTMSessionFether and GTMAppAuth

Then, I found some functions are deleted, changed and GIDAuthentication header has been moved to private

Here's a modified package with googlesignin.mm file GoogleSignIn.zip

Thank you! GoogleSignIn 7.0.0 and your modified package worked with Firebase 10.15.0

@jeremytm
Copy link

jeremytm commented Sep 4, 2024

I don't know if this is the best solution, but it worked.

Deleting ~/.cocoapods completely, then starting a new build was the only thing that finally fixed it for me.

@Bodrihin
Copy link

Bodrihin commented Sep 4, 2024

Recently, there was 7.0.0 version of GoogleSign-iOS. So I modified Dependecies (iosPods target version to > 6.0.2) If you're using the latest Firebase plug-in, you have to do this because of GTMSessionFether and GTMAppAuth
Then, I found some functions are deleted, changed and GIDAuthentication header has been moved to private
Here's a modified package with googlesignin.mm file GoogleSignIn.zip

Thank you! GoogleSignIn 7.0.0 and your modified package worked with Firebase 10.15.0

Need help. How i can do import GoogleSignIn.zip ?

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

Successfully merging this pull request may close these issues.