google-signin-unity
google-signin-unity copied to clipboard
CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core"
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."

Then I tried to install pod from terminal the issue remains the same.
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 ?
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 .
After chaing firebase sdk version 9.6.0, error is gone.
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 !!
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
I have found a solution: https://github.com/googlesamples/google-signin-unity/issues/228#issuecomment-1593791767
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 Heya, unfortunately I don't work with Unity anymore so I'm unsure of the fix, I hope you mange to get it sorted