Skip to content

Commit dba582f

Browse files
authored
fix(spm): Add explicit SwiftPM dependencies to avoid undefined symbols (#15287)
1 parent 9f4c34b commit dba582f

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

Crashlytics/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
- [fixed] Add missing nanopb dependency to fix SwiftPM builds when building
3+
dynamically linked libraries. (#15276)
4+
15
# 12.1.0
26
- [fixed] Do not log using raw print in an internal class. (#15138)
37

FirebasePerformance/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
- [fixed] Add missing nanopb dependency to fix SwiftPM builds when building
3+
dynamically linked libraries. (#15276)
4+
15
# 11.6.0
26
- [fixed] Fix a crash related to registering for notifications when the app is between foreground or background states. (#13174)
37

FirebaseRemoteConfig/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
- [fixed] Add missing GoogleUtilities dependency to fix SwiftPM builds when
3+
building dynamically linked libraries. (#15276)
4+
15
# 12.2.0
26
- [fixed] Fixed a race condition that could lead to a crash during network
37
session recreation. (#15087)

Package.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ let package = Package(
10031003
"FirebaseABTesting",
10041004
"FirebaseInstallations",
10051005
"FirebaseRemoteConfigInterop",
1006+
.product(name: "GULEnvironment", package: "GoogleUtilities"),
10061007
.product(name: "GULNSData", package: "GoogleUtilities"),
10071008
],
10081009
path: "FirebaseRemoteConfig/Sources",
@@ -1100,6 +1101,13 @@ let package = Package(
11001101
"FirebaseInstallations",
11011102
"FirebaseCoreExtension",
11021103
"FirebaseSessionsObjC",
1104+
// The `FirebaseSessions` target transitively depends on nanopb via the internal
1105+
// `FirebaseSessionsObjC` target. Not explicitly depending on nanopb leads to
1106+
// undefined symbol errors in Tuist based SPM builds.
1107+
// See the conversations in
1108+
// - https://github.com/firebase/firebase-ios-sdk/issues/15276
1109+
// - https://github.com/firebase/firebase-ios-sdk/pull/15287
1110+
.product(name: "nanopb", package: "nanopb"),
11031111
.product(name: "Promises", package: "Promises"),
11041112
.product(name: "GoogleDataTransport", package: "GoogleDataTransport"),
11051113
.product(name: "GULEnvironment", package: "GoogleUtilities"),

0 commit comments

Comments
 (0)