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

XCFramework is crashing with above 10.20 RealmSwift version I am using 10.45.3 iOS swift native framework. #8679

Open
jainankit04 opened this issue Sep 9, 2024 · 1 comment

Comments

@jainankit04
Copy link

How frequently does the bug occur?

Always

Description

Hi,
I am making XCFrameworkk with the -ObjC linkers as mentioned in another thread. Realmswift v10.45.3 is a dependency added swift package manager. My app is crash with below error

warning: (arm64) /Users/XXXXX/Library/Developer/Xcode/DerivedData/MySDKDemo-dixaxivtsgzeinffxvmifgndnpsh/Build/Products/Debug-iphoneos/XXXXX.app/XXXXX empty dSYM file detected, dSYM was created with an executable with no debug info.
dyld[1160]: Library not loaded: @rpath/Realm.framework/Realm
Referenced from: /private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/MySDK.framework/MySDK
Reason: tried: '/usr/lib/swift/Realm.framework/Realm' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/MySDK.framework/Frameworks/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/Frameworks/Realm.framework/Realm' (no such file), '/usr/lib/swift/Realm.framework/Realm' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Realm.framework/Realm' (no such file), '/Users/XXXXX/Library/Developer/Xcode/DerivedData/MySDKDemo-dixaxivtsgzeinffxvmifgndnpsh/Build/Products/Debug-iphoneos/PackageFrameworks/Realm.framework/Realm' (no such file), '/private/preboot/Cryptexes/OS/Users/XXXXX/Library/Developer/Xcode/DerivedData/MySDKDemo-dixaxivtsgzeinffxvmifgndnpsh/Build/Products/Debug-iphoneos/PackageFrameworks/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Realm.framework/Realm' (no such file), '/Users/XXXXX/Library/Developer/Xcode/DerivedData/MySDKDemo-dixaxivtsgzeinffxvmifgndnpsh/Build/Products/Debug-iphoneos/PackageFrameworks/Realm.framework/Realm' (no such file), '/private/preboot/Cryptexes/OS/Users/XXXXX/Library/Developer/Xcode/DerivedData/MySDKDemo-dixaxivtsgzeinffxvmifgndnpsh/Build/Products/Debug-iphoneos/PackageFrameworks/Realm.framework/Realm' (no such file), '/usr/lib/swift/Realm.framework/Realm' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Realm.framework/Realm' (no such file), '/Users/XXXXX/Library/Developer/Xcode/DerivedData/MySDKDemo-dixaxivtsgzeinffxvmifgndnpsh/Build/Products/Debug-iphoneos/PackageFrameworks/Realm.framework/Realm' (no such file), '/private/preboot/Cryptexes/OS/Users/XXXXX/Library/Developer/Xcode/DerivedData/MySDKDemo-dixaxivtsgzeinffxvmifgndnpsh/Build/Products/Debug-iphoneos/PackageFrameworks/Realm.framework/Realm' (no such file), '/usr/lib/swift/Realm.framework/Realm' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/Realm.framework/Realm' (no such file), '/private/var/containers/Bundle/Application/C08773AA-4C30-4246-B221-48B8ED954CE5/XXXXX.app/Frameworks/Realm.framework/Realm' (no such file)

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

Lanching the app it is crash.

Version

10.45.3

What Atlas Services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

ios 18

Build environment

Xcode version: ...16 Beta4
Dependency manager and version: ...10.45.3

Copy link

sync-by-unito bot commented Sep 9, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2428

@jainankit04 jainankit04 changed the title XCFramework is crashing with above 10.20 RealmSwift version I am using 10.45.3 XCFramework is crashing with above 10.20 RealmSwift version I am using 10.45.3 iOS swift native framework Sep 9, 2024
@jainankit04 jainankit04 changed the title XCFramework is crashing with above 10.20 RealmSwift version I am using 10.45.3 iOS swift native framework XCFramework is crashing with above 10.20 RealmSwift version I am using 10.45.3 iOS swift native framework. Sep 9, 2024
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

1 participant