Skip to content

Distribution as an XCFramework #1078

Closed
Closed

Description

@vadimbelyaev

When building for Apple platforms, Firebase provides a way to include it into the project without a package manager using an XCFramework. It vastly improves build times, especially in CI environments where incremental builds aren't happening (saving about 30 minutes of build times).

However, FirebaseUI isn't currently getting distributed as an XCFramework and I'd love to see it happen some day.

Cheers!
-Vadim

Activity

  1. morganchen12 commented on Jul 28, 2022

    @morganchen12
    Contributor

    We don't have a good method of synchronizing FirebaseUI binary releases with Firebase upstream binary releases since they're both on different release schedules. However, you could manually include FirebaseUI as source via git submodule (though this requires manually keeping the versions in sync) and use Firebase via the XCFramework approach you described. Most of the build time savings will come from Firebase itself, since FirebaseUI is a relatively small codebase (less than 1% the size of Firestore alone, including Firestore's dependencies).

  2. vadimbelyaev commented on Sep 15, 2022

    @vadimbelyaev
    Author

    @morganchen12, thanks a lot for your response and sorry for my delayed reply.

    I tried adding FirebaseUI as a git submodule while having Firebase as an XCFramework, but my attempts were not successful, mostly because of transient dependencies that are the same for FirebaseUI and Firebase iOS SDK. I think mostly it's just my lack of experience in setting up the build configuration in such a way.

    I'm okay with closing this issue since I understand the fundamental constraints that you describe.

    If someone from the community knows if there is any documentation or tutorial available on how to configure the project to use Firebase as an XCFramework and have FirebaseUI as a git submodule, I'd love to read it. Until then, looks like I'm destined to just use SwiftPM :)

    Cheers and thanks for the great work!
    -Vadim

  3. morganchen12 commented on Sep 23, 2022

    @morganchen12
    Contributor

    I'll leave this issue open, since it's a significant increase in complexity to include a dependency via submodule instead of prebuilt XCFramework.

  4. reopened this on Jun 9, 2026
  5. github-actions commented on Jul 8, 2026

    @github-actions

    Hello, to help manage issues we automatically close stale issues.

    This issue has been automatically marked as stale because it has not had activity for quite some time. If it is still relevant, leave a comment to keep it open.

    This issue will be closed in 15 days if no further activity occurs.

    Thank you for your contributions.

  6. russellwheatley commented on Aug 3, 2026

    @russellwheatley
    Member

    FirebaseUI is already an SPM package (Package.swift), and it depends on firebase-ios-sdk. Firestore via SPM is a binary by default so I don't think this is necessary anymore.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions