realm-swift
realm-swift copied to clipboard
unable to solve warning 'Direct access in function makeError(ream::SyncError&&)'
How frequently does the bug occur?
Always
Description
xcode warning that I am not able to solve:
Direct access in function 'makeError(realm::SyncError&&)' from file '/Users/X/Library/Developer/Xcode/DerivedData/X/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/Realm.build/Objects-normal/arm64/RLMError.o' to global weak symbol 'realm::SyncError::c_recovery_file_path_key' from file '/Users/X/Library/Developer/Xcode/DerivedData/X/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/Realm/librealm-monorepo.a(sync_session.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
I tried restarting xcode and deleting the DerivedData folder, but that did not help shutting down the warning.
realm version: 10.41 (installed via pod) xcode version: 14.3.1 project target: iOS 16.5 swift version: 5.8
Stacktrace & log output
Direct access in function 'makeError(realm::SyncError&&)' from file '/Users/X/Library/Developer/Xcode/DerivedData/X/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/Realm.build/Objects-normal/arm64/RLMError.o' to global weak symbol 'realm::SyncError::c_recovery_file_path_key' from file '/Users/X/Library/Developer/Xcode/DerivedData/X/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/Realm/librealm-monorepo.a(sync_session.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
10.41
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
16.5
Build environment
Xcode version: 14.3.1
I'm seeing this also with Xcode 15.0 and RealmSwift 10.43.1. Is this something to worry about or can it be safely ignored?
any updates?