Xcode Build Error - v3.0.2
Hey,
I've been having trouble getting an Xcode build working in order to be able to run on a simulator on my M1 MacBook Air. It builds fine and works for a physical device.
After doing some digging it appears that the GoogleSignIn for iOS SDK only supports the M1 architecture for versions > 6.0.
https://github.com/google/GoogleSignIn-iOS/releases/tag/6.0.0
Has this package been updated to support this? I noticed in a commit that it appears it has, just not in 3.0.2:
https://github.com/CodetrixStudio/CapacitorGoogleAuth/commit/4859f9c11b53476c9247f4697bae5b8b33022870
Is it possible to have an updated release for this?
Findings:
When I install the package using:
npm i @codetrix-studio/capacitor-google-auth
followed by a:
npx cap sync ios
My Podfile.lock still thinks it's using GoogleSignIn 5.0.2.
- CodetrixStudioCapacitorGoogleAuth (0.0.1):
- Capacitor
- GoogleSignIn (~> 5.0.2)
- GoogleSignIn (5.0.2):
- AppAuth (~> 1.2)
- GTMAppAuth (~> 1.0)
- GTMSessionFetcher/Core (~> 1.1)
The .podspec file located in node_modules/@codetrix-studio/ displays:
Pod::Spec.new do |s| s.name = 'CodetrixStudioCapacitorGoogleAuth' s.version = '0.0.1' s.summary = 'Google Auth plugin for capacitor.' s.license = 'MIT' s.homepage = 'https://github.com/CodetrixStudio/CapacitorGoogleAuth.git' s.author = 'CodetrixStudio' s.source = { :git => 'https://github.com/CodetrixStudio/CapacitorGoogleAuth.git', :tag => s.version.to_s } s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' s.ios.deployment_target = '12.0' s.dependency 'Capacitor' s.dependency 'GoogleSignIn', '~> 5.0.2' s.static_framework = true end
I think this is the reason it's still not working. Any ideas how we could fix this?
I have exactly the same problem.
To resolve the problem you can also put the following into your package.json : "@codetrix-studio/capacitor-google-auth": "git://github.com:CodetrixStudio/CapacitorGoogleAuth.git",
That works for now. Just had to change GoogleAuth.init() to GoogleAuth.initialize()
Hopefully we get an official release soon.
To resolve the problem you can also put the following into your package.json : "@codetrix-studio/capacitor-google-auth": "git://github.com:CodetrixStudio/CapacitorGoogleAuth.git",
Thank you very much, i can finally use the simulator again on a mac m1