You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use RealmSwift in Unit Tests + version above 10.48.1 + installed via Package.swift file
Expected results
Successfully build Unit Tests target
Actual results:
If I just build main target - it's building successfully
If I run unit tests - I'm getting 20 errors like Undefined symbol: _$s10RealmSwift0A0V13ConfigurationV07defaultC0AEvgZ
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
Important - I caught the issue only from version 10.48.2. On 10.48.1 and before all works as expected
Specify in Package.swift: .package(url: "https://github.com/realm/realm-swift.git", .exactItem(Version(10, 48, 2))),
Link RealmSwift product to target in Package.swift: .product(name: "RealmSwift", package: "realm-swift"),
paparotnick
changed the title
Undefined symbol: _$s10RealmSwift0A0V13ConfigurationV07defaultC0AEvgZ
Unit Test: Undefined symbol: _$s10RealmSwift0A0V13ConfigurationV07defaultC0AEvgZ
Aug 8, 2024
I'm still trying to fix this issue and now have more context:
If I add RealmSwift via Cocoapods it works well. But it's not the solution for me, as I cannot use cocoa pods for this project.
If I add RealmSwift via SPM NOT to Package.swift, but directly to the target, it shows the same errors
I tried to create a new project with Unit Tests and add RealmSwift via SPM (version 10.52.3). After I added only one line: Realm.Configuration.defaultConfiguration.inMemoryIdentifier = self.name it start showing me same type of errors (on a screenshot)
Important part: I've added RealmSwift as on screenshot
Could it be some issue with my local machine configuration?
I'm experiencing the same issue when it comes to unit tests. I too use SPM. I can also confirm that things work for me with 10.48.1 but not with newer versions.
How frequently does the bug occur?
Always
Description
Use RealmSwift in Unit Tests + version above 10.48.1 + installed via Package.swift file
Successfully build Unit Tests target
If I just build main target - it's building successfully
If I run unit tests - I'm getting 20 errors like
Undefined symbol: _$s10RealmSwift0A0V13ConfigurationV07defaultC0AEvgZ
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
.package(url: "https://github.com/realm/realm-swift.git", .exactItem(Version(10, 48, 2))),
.product(name: "RealmSwift", package: "realm-swift"),
Version
10.48.2
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
iOS 15+
Build environment
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79
/Applications/Xcode15.4.app/Contents/Developer
Xcode 15.4
Build version 15F31d
/opt/homebrew/opt/ruby/bin/pod
1.15.2
/bin/bash
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
carthage not found
(not in use here)
/usr/bin/git
git version 2.39.3 (Apple Git-146)
The text was updated successfully, but these errors were encountered: