Skip to content

Commit

Permalink
Force Realm to be built as a dynamic library when installing via SPM
Browse files Browse the repository at this point in the history
This is required for compliance with the new privacy manifest rules. While App
Store Connect supports static libraries, Xcode doesn't actually build static
libraries for static targets; it just links the object files directly into the
app. It also doesn't implement the xcprivacy manifest merging that the
documentation claims exists, so our privacy manfiest is never actually used.
  • Loading branch information
tgoyne committed Apr 29, 2024
1 parent 15380c1 commit 078c443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ x.y.z Release notes (yyyy-MM-dd)
([Core #7552](https://github.com/realm/realm-core/pull/7552)).
* Improve perfomance of IN queries and chained OR equality queries for
UUID/ObjectId types. ([.Net * #3566](https://github.com/realm/realm-dotnet/issues/3566))
* Force building as a dynamic library when installing via SPM. This is required
to work around Xcode building static targets in a way incompatible with App
Store Connect's privacy manifest scanning.

### Fixed
* `-[RLMUser allSessions]` did not include sessions which were currently
Expand Down
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ let package = Package(
products: [
.library(
name: "Realm",
type: .dynamic,
targets: ["Realm"]),
.library(
name: "RealmSwift",
Expand Down

0 comments on commit 078c443

Please sign in to comment.