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

Fix resource loading in GoogleSignInSwift with CocoaPods use_frameworks! #197

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

mdmathias
Copy link
Collaborator

If a project using CocoaPods as its dependency manager added use_frameworks! in its Podfile, then we would fail to load resources from the bundle. This failure would lead to Google Sign-In image icon for the button to not load, for example.

The reason for this failure was that we were previously using a class in the GoogleSignInSwift target to find the Bundle. While we would be able to find this Bundle, it would not contain the resources included in the Bundle for GoogleSignIn.

Fixes #194

@mdmathias mdmathias requested a review from petea August 11, 2022 18:07
@mdmathias mdmathias added bug Something isn't working Swift labels Aug 11, 2022
@petea
Copy link
Contributor

petea commented Aug 11, 2022

Should we write a test for this? We're already running the unit tests through the --use-static-frameworks variation of pod lib lint, so we should be able to catch this.

@mdmathias mdmathias force-pushed the mdmathias/fix-use-frameworks branch 2 times, most recently from d20dbed to aff19b5 Compare August 11, 2022 23:02
@petea petea added this to the 6.2.3 milestone Aug 12, 2022
@mdmathias mdmathias merged commit 2786deb into main Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to load Google icon image url
2 participants