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

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

Open
atif-infinityup opened this issue Jan 18, 2023 · 8 comments

Comments

@atif-infinityup
Copy link

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 ?

@ChrisBindy
Copy link

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 .

@cinephile231
Copy link

After chaing firebase sdk version 9.6.0, error is gone.

@xmx77
Copy link

xmx77 commented Mar 10, 2023

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 !!

@ubberkid
Copy link

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

@yusufisik
Copy link

I have found a solution:
#228 (comment)

@N4TUR1NO
Copy link

N4TUR1NO commented Sep 9, 2024

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 ;(

@ChrisBindy
Copy link

@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

@varLG
Copy link

varLG commented Oct 19, 2024

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 .

I found same folder in trunk (from: cocoapods/repos/trunk/Specs/d/4/0/GoogleSignIn/6.0.2(my version)) and worked for my case. don't forget the edit main file like upper comment.

my pod file is:

source 'https://cdn.cocoapods.org/'

platform :ios, '13.0'

target 'UnityFramework' do
pod 'FBSDKCoreKit', '> 16.0.1'
pod 'FBSDKCoreKit_Basics', '
> 16.0.1'
pod 'FBSDKGamingServicesKit', '> 16.0.1'
pod 'FBSDKLoginKit', '
> 16.0.1'
pod 'FBSDKShareKit', '> 16.0.1'
pod 'Firebase/Analytics', '10.25.0'
pod 'Firebase/Auth', '10.25.0'
pod 'Firebase/Core', '10.25.0'
pod 'Firebase/Messaging', '10.25.0'
pod 'GoogleSignIn', '
> 6.0.2'
end
target 'Unity-iPhone' do
end
use_frameworks! :linkage => :static

my googlesignin patch is
https://github.com/CodeMasterYi/google-signin-unity/releases

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

8 participants