Skip to content

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 force-pushed the mdmathias/fix-use-frameworks branch from aff19b5 to 8b5e668 Compare August 12, 2022 22:16
@mdmathias mdmathias force-pushed the mdmathias/fix-use-frameworks branch from 8b5e668 to 3256b3e Compare August 12, 2022 22:28
@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