Skip to content

Realm Swift SDK v10.49.3 changed the details for installing the package with Swift Package Manager (SPM) #214

Open
@lluisgerard

Description

@lluisgerard

As explained on Realm documentation Swift Package Target Cannot be Built Dynamically, you now have to select either a Realm or RealmSwift library. For this project only RealmSwift should be selected.

At the moment, if you create a project from scratch and you just add RxRealm as a dependency you get this error:

Swift package target `Realm` is linked as a static library by `TargetName`
--
and `Realm`, but cannot be built dynamically because there is a package
product with the same name.

image

I uploaded more info in this comment on another thread in Realm github repo: realm/realm-swift#8566 (comment)

I tried doing this myself but I cannot get the project to compile for some reason so I decided to report it here in the meantime.

If choosing only RealmSwift is not possible, in the meantime we could also limit the version to v10.49.2 (the one before they changed this).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions