google-signin-unity icon indicating copy to clipboard operation
google-signin-unity copied to clipboard

CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core"

Open atif-infinityup opened this issue 2 years ago • 8 comments
trafficstars

I am using Google SignIn Plugin version 1.0.4 Upgraded and Firebase Authentication (Version: 10.3.0) for Google SignIn on IOS using unity version 2021.3.16f1. Unity is unable to make Xcode project properly. Showing Error "iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in a non-functional Xcode project." Screenshot 2023-01-18 at 11 25 37 PM

Then I tried to install pod from terminal the issue remains the same.

Screenshot 2023-01-18 at 11 27 09 PM

So basically pod is unable to find correct GTMSessionFetcher/Core file due to conflict between two requirements. Is there any way to increase GTMSessionFetcher/Core (~> 1.1) value ?

atif-infinityup avatar Jan 18 '23 18:01 atif-infinityup

Morning I just had this same problem. I have managed to work around this by manually modifying the locally install PodSpecs to use a newer version of GTMSessionFetcher/Core that matches FirebaseAuth.

Find the location of the GoogleSignIn podspec file. Mine was at "/Users/{user}/.cocoapods/repos/cocoapods/Specs/d/4/0/GoogleSignIn/5.0.2/GoogleSignIn.podspec.json"

and change "GTMSessionFetcher/Core": "~> 1.1" under dependencies to "GTMSessionFetcher/Core": [ ">= 2.1", "< 4.0" ]

this will make it match the FirebaseAuth podspec and the xcode workspace will be correctly created .

ChrisBindy avatar Jan 20 '23 11:01 ChrisBindy

After chaing firebase sdk version 9.6.0, error is gone.

cinephile231 avatar Feb 07 '23 03:02 cinephile231

Any one fix this issue ? @atif-infinityup can you tell me how you fix this issue ?

I can't understand why this plugin not update since 2018 !!

xmx77 avatar Mar 10 '23 03:03 xmx77

Although downgrading firebase to 9.6.0 will fix it..

I would definitely just do the fix @ChrisBindy mentioned. I think staying up-to-date is more important as there are many bug fixes in latest versions

ubberkid avatar Mar 17 '23 07:03 ubberkid

I have found a solution: https://github.com/googlesamples/google-signin-unity/issues/228#issuecomment-1593791767

yusufisik avatar Jun 15 '23 22:06 yusufisik

and change "GTMSessionFetcher/Core": "~> 1.1" under dependencies to "GTMSessionFetcher/Core": [ ">= 2.1", "< 4.0" ]

ChrisBindy is any other actions required? i changed dependencies like you said and nothing happens ;(

N4TUR1NO avatar Sep 09 '24 09:09 N4TUR1NO

@N4TUR1NO Heya, unfortunately I don't work with Unity anymore so I'm unsure of the fix, I hope you mange to get it sorted

ChrisBindy avatar Sep 11 '24 08:09 ChrisBindy