Creating and Using Swift Packages With Nested Dependencies - Part 2

Опубликовано: 26 Март 2026
на канале: Coding With Tom
1,240
17

Today we will be improving our Swift Packages. First we will create a Swift Package that uses FirebaseAuth, a Package that depends on other packages.

Then we will distribute an XCFramework through a Swift Package to hide the source code. The challenge here will be to add a bridge so that we can support the XCFramework and at the same time import FirebaseAuth with its nested dependencies through SPM.

Chapters:
0:00 Creating a Swift Package with Nested Dependencies
0:58 Adding a Package with Nested Dependencies
3:05 Configuring Firebase and Creating Authentication Methods
11:28 Adding a Package with an XCFramework with Nested Dependencies Using an Adapter
19:00 Creating a Bridge Between the XCFramework and the Nested Dependencies with a Swift Package

Source code: https://github.com/codingWithTom/Swif...

Playlist:    • Swift Packages  

Apple Documentation:
https://developer.apple.com/documenta...
https://developer.apple.com/documenta...

Intro song: All That  from Bensound.com
Outro song: Happiness from Bensound.com