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 compitability issue with Xcode #8658

Closed
TahaMahmoud opened this issue Jul 24, 2024 · 2 comments
Closed

XCFramework compitability issue with Xcode #8658

TahaMahmoud opened this issue Jul 24, 2024 · 2 comments

Comments

@TahaMahmoud
Copy link

How frequently does the bug occur?

Always

Description

I tried to integrate Realm into a project as XCFramework, I downloaded the XCFramework file here [email protected]

This approach works fine using Xcode Version 15.3
But as expected, It doesn't work on Xcode version 15.4
And gives this error

Cannot load module 'RealmSwift' built with SDK 'iphonesimulator17.4' when using SDK 'iphonesimulator17.5': /Users/TahaMahmoud/Library/Developer/Xcode/DerivedData/{Project_Name}-
ekjbxvcgmrzqymeemnnceukjmpvv/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Modules/RealmSwift.swiftmodule/arm64-apple-ios-simulator.swiftmodule

But the issue is the team members have different versions of Xcode, So I need a way to integrate Realm as XCFramework instead of SPM, And at the same time, it works with different versions of Xcode.

Stacktrace & log output

Cannot load module 'RealmSwift' built with SDK 'iphonesimulator17.4' when using SDK 'iphonesimulator17.5': /Users/TahaMahmoud/Library/Developer/Xcode/DerivedData/{Project_Name}-
> ekjbxvcgmrzqymeemnnceukjmpvv/Build/Products/Debug-iphonesimulator/RealmSwift.framework/Modules/RealmSwift.swiftmodule/arm64-apple-ios-simulator.swiftmodule

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

v10.52.2

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS (15 as a minimum version)

Build environment

Xcode version: ...
Dependency manager and version: ...

Copy link

sync-by-unito bot commented Jul 24, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2414

@amirpervaizQI
Copy link

@TahaMahmoud you need to compile XCFramework with library evolution support BUILD_LIBRARY_FOR_DISTRIBUTION = YES https://www.swift.org/blog/library-evolution/

@nirinchev nirinchev closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2024
@sync-by-unito sync-by-unito bot closed this as completed Aug 3, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants