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 crash building a module map for a product with an iOS-only Interop dependency #11620

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

paulb777
Copy link
Member

@paulb777 paulb777 commented Jul 27, 2023

While header-only internal Interop pods for binary distributions don't need to be built for Objective-C internal dependencies, the included module dependencies are needed for internal Swift implementations like FirebaseStorage and FirebaseFunctions.

However, the module map calculation uses platform-agnostic dependencies for setting up a Podfile for its pod install . This has the side effect of causing a crash when building the iOS-only ReCaptchaInterop.

That issue should become moot if we address #8945 and switch to dynamic libraries along with xcodebuild generated modulemaps for Firebase 11.

@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on green CI and expected directory diff.

@paulb777 paulb777 changed the title Don't build Interops in binary distributions Fix crash building a module map for a product with an iOS-only Interop dependency Jul 27, 2023
@paulb777 paulb777 merged commit d89d65e into master Jul 27, 2023
34 checks passed
@paulb777 paulb777 deleted the pb-zip-no-interop branch July 27, 2023 20:46
@firebase firebase locked and limited conversation to collaborators Aug 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants