Skip to content

fix(FirebaseStorageUI): fix SPM build failure with Firebase Storage 11.x#1350

Open
demolaf wants to merge 7 commits into
mainfrom
fix/storage-ui-spm-firebase-11
Open

fix(FirebaseStorageUI): fix SPM build failure with Firebase Storage 11.x#1350
demolaf wants to merge 7 commits into
mainfrom
fix/storage-ui-spm-firebase-11

Conversation

@demolaf

@demolaf demolaf commented Jun 9, 2026

Copy link
Copy Markdown
Member

Fixes #1271

FirebaseStorage 9+ is pure Swift with no ObjC umbrella headers. Using @import FirebaseStorage in public headers caused the Clang dependency scanner to fail before compilation even begins.

Replace @import in public headers with @class forward declarations and move the actual imports into .m files.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors header imports in FirebaseStorageUI to resolve Clang module-scanner failures for Swift Package Manager (SPM) builds. It replaces direct @import FirebaseStorage statements in public headers with forward declarations for SPM, moving the actual imports and category declarations to the implementation files. A review comment correctly points out that this change may cause compilation failures in test targets (such as FUIImageViewCategoryTests.m) that rely on these headers, and suggests explicitly importing FirebaseStorage in those test files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't build project when using the Swift Package Manager FirebaseStorage-Swift.h missing in SPM build

2 participants