-
Notifications
You must be signed in to change notification settings - Fork 180
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
GoogleSignInSwift build errors for Archive and SwiftUI Preview #153
Comments
An update on this: I am also able to Archive an app. The same errors are thrown when Archiving an app. It seems it has to do with using the SwiftUI |
Hello! I'm not sure what the issue is here. I was able to generate a preview of our sample app on my test device locally like the below. Is it perhaps related to not having a preview made for your view? Or, maybe you're haven't added the GoogleSignInSwift dependency or imported it correctly? Another idea: perhaps the version of iOS you're trying to run against is too low? The |
It's if you try to run the preview on your device. But make sure you have a GoogleSignInButton in your view. If anything - try to archive the app. |
Thanks! I can reproduce this and am looking into it. |
Thanks for bringing this to our attention. There is currently a problem with building the GoogleSignInSwift target for release (Archive, Analyze, and on device Swift Previews apparently) on iOS when using Swift Package Manager (SPM). This does not impact SPM macOS builds or CocoaPods builds for either iOS or macOS. Because the Swift package shares platform min versions between its two targets (GoogleSignIn and GoogleSignInSwift), when building for iOS, the GoogleSignInSwift target is unnecessarily built with an armv7 slice and this part of the build fails with missing SwiftUI symbol errors. We are working on a solution for this. |
I'm having an issue when running a SwiftUI preview on my device while using this library. There's a bunch of errors thrown.. Attaching a screenshot for reference.
Whats odd is that it works fine when running the app on my device or in the simulator. It's really just an issue with SwiftUI previews on device. Any ideas?
The text was updated successfully, but these errors were encountered: