-
Notifications
You must be signed in to change notification settings - Fork 205
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
Prevent build errors for GoogleSignInSwift when using SPM #157
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of ugly, but I suppose it works.
We avoided the arm7/SPM issue in Firebase by requiring iOS 11 for SPM since SPM users don't have the legacy requirements of CocoaPods and haven't seen any complaints. https://github.com/firebase/firebase-ios-sdk/blob/master/Package.swift#L26
Unfortunately |
@petea do you think this will get merged and the 6.2.2 released today? This is breaking our ci pipelines for some of our environments and would be very good to have it merged before the holiday next week. Thank you! |
@gmogames we're aiming to release 6.2.2 in the next few hours. |
Thank you! |
@gmogames note that, as long as you're not using the new SwiftUI button, you can also remove the GoogleSignInSwift library from your project as SPM may have added it automatically. |
Unfortunately I have to report that everything works fine for me as long as the build configuration is set to "Debug". As soon as I switch to "Release" I get the same errors again. Is there something I'm overlooking on my side? Or can you recreate this behaviour? |
@macintosh-HD I'm not able to recreate this, having looked briefly. Building with a release configuration using Archive or otherwise is working as expected for me. Can you provide detailed repro steps and tell me more about what you're building? Also, can you verify that you're using the latest 6.2.2 release? |
Hey @petea! MacOS 12.4, Xcode 13.4 |
@macintosh-HD thanks for bringing this to my attention. I've now been able to repo and a fix is on the way. |
Because SPM does not support target-specific platform min versions, our GoogleSignInSwift target is built for both arm64 and armv7. The armv7 stage of the build fails with missing SwiftUI symbol errors. The armv7 slice is unnecessary as this target can only be used on iOS 13+. This change works around the problem by preventing the armv7 build stage from doing any work.