We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Always
Running xcode preview works fine until I add any Realm call in the file.
import SwiftUI import RealmSwift #Preview { _ = try? Realm(configuration: .init()) // comment this: Preview works again return Text("Coucou") }
Reproduction at: https://github.com/CyprienRicque/PreviewRealmFail.git
I have been trying different flags and compile targets to fix this. Nothing worked. Problem occurs for
-ld64
10.54.2
20.0.1
Note that the stack trace may vary but is always about linking to realm errors.
[Remote] JITError: Runtime linking failure Additional Link Time Errors: Symbols not found: [ _RLMRealmPathForFile, _$s10RealmSwift0A0V13configuration5queueA2C13ConfigurationV_So012OS_dispatch_D0CSgtKcfC, _$s10RealmSwift0A0V13ConfigurationVMa, _$s10RealmSwift0A0V13ConfigurationV7fileURL18inMemoryIdentifier13encryptionKey8readOnly13schemaVersion14migrationBlock06deleteA17IfMigrationNeeded21shouldCompactOnLaunch11objectTypes12seedFilePathAE10Foundation0E0VSg_SSSgAP4DataVSgSbs6UInt64VySo12RLMMigrationC_AYtcSgS2bSi_SitcSgSaySo13RLMObjectBaseCmGSgAStcfC ]
(Not the complete output)
SPM with
.target( name: "StyleGuide", dependencies: [ .product(name: "RealmSwift", package: "realm-swift"), ] )
Create a file with
import SwiftUI import RealmSwift #Preview { _ = try? Realm(configuration: .init()) return Text("Coucou") }
Observe the preview work fine without realm, and fail to build with realm
Local Database only
No
MacOS 15.2
Xcode version: 16.2 Dependency manager and version: SPM
The text was updated successfully, but these errors were encountered:
The error is fixed by using legacy previews https://forums.developer.apple.com/forums/thread/764016 in the reproduction repo.
Sorry, something went wrong.
No branches or pull requests
How frequently does the bug occur?
Always
Description
Running xcode preview works fine until I add any Realm call in the file.
Reproduction at: https://github.com/CyprienRicque/PreviewRealmFail.git
I have been trying different flags and compile targets to fix this. Nothing worked.
Problem occurs for
-ld64
10.54.2
and20.0.1
Note that the stack trace may vary but is always about linking to realm errors.
Stacktrace & log output
(Not the complete output)
Can you reproduce the bug?
Always
Reproduction Steps
SPM with
Create a file with
Observe the preview work fine without realm, and fail to build with realm
Version
20.0.1
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
MacOS 15.2
Build environment
Xcode version: 16.2
Dependency manager and version: SPM
The text was updated successfully, but these errors were encountered: