Skip to content

Commit b37bbdd

Browse files
authored
Add macCatalyst to the platforms which link Foundation (#6838)
This is required when SPM decides to link core as a dynamic library.
1 parent 95f4a7c commit b37bbdd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
([PR #6837](https://github.com/realm/realm-core/pull/6837), since v10.0.0)
1515
* Reading existing logged-in users on app startup from the sync metadata Realm performed three no-op writes per user on the metadata Realm ([PR #6837](https://github.com/realm/realm-core/pull/6837), since v10.0.0).
1616
* If a user was logged out while an access token refresh was in progress, the refresh completing would mark the user as logged in again and the user would be in an inconsistent state ([PR #6837](https://github.com/realm/realm-core/pull/6837), since v10.0.0).
17+
* The Swift package failed to link required libraries when building for macCatalyst.
1718

1819
### Breaking changes
1920
* SyncUser::provider_type() and realm_user_get_auth_provider() have been removed. Users don't have provider types; identities do. `SyncUser::is_anonymous()` is a more correct version of checking if the provider type is anonymous ([PR #6837](https://github.com/realm/realm-core/pull/6837)).

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ let package = Package(
425425
linkerSettings: [
426426
.linkedLibrary("compression"),
427427
.linkedLibrary("z"),
428-
.linkedFramework("Foundation", .when(platforms: [.macOS, .iOS, .tvOS, .watchOS])),
429-
.linkedFramework("Security", .when(platforms: [.macOS, .iOS, .tvOS, .watchOS])),
428+
.linkedFramework("Foundation", .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
429+
.linkedFramework("Security", .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .macCatalyst])),
430430
]),
431431
.target(
432432
name: "RealmQueryParser",

0 commit comments

Comments
 (0)