Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Package Target #8720

Open
JakfarShodiq opened this issue Nov 24, 2024 · 1 comment
Open

Swift Package Target #8720

JakfarShodiq opened this issue Nov 24, 2024 · 1 comment

Comments

@JakfarShodiq
Copy link

How frequently does the bug occur?

Always

Description

I installed Swift v10.54.1 and added the Realm and RealmDatabase packages as dependencies, but I encountered errors while building.

Showing Recent Messages
Swift package target 'Realm' is linked as a static library by 'TestAppNews' and 'Realm', but cannot be built dynamically because there is a package product with the same name.

Screenshot 2024-11-24 at 12 35 57

I selected the embed & sign, but still not working. Any suggestions?

Thank you in advance

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

10.54.1

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

18.0

Build environment

Xcode version: 16.0
Dependency manager and version: 10.54.1

@PhilippeWeidmann
Copy link

Hi,

You should only select one the two packages. Not both.
If you are only doing Swift go for RealmSwift else go for Realm.

Link to documentation -> https://www.mongodb.com/docs/atlas/device-sdks/sdk/swift/install/#installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants