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

Module compiled with Swift 5.5 cannot be imported by the Swift 5.4 compiler #7446

Closed
ravikirankhareedi opened this issue Sep 22, 2021 · 2 comments
Assignees

Comments

@ravikirankhareedi
Copy link

ravikirankhareedi commented Sep 22, 2021

How frequently does the bug occur?

All the time

Description

I am using the compiler Realm package 10.15.1 (https://github.com/realm/realm-cocoa/releases/download/v10.15.1/realm-swift-10.15.1.zip). I used the xcframework built on Xcode 13. I get the error "Module compiled with Swift 5.5 cannot be imported by the Swift 5.4 compiler" when I try to build the project with Xcode 12.5

Stacktrace & log output

Module compiled with Swift 5.5 cannot be imported by the Swift 5.4 compiler

Can you reproduce the bug?

Yes, always

Reproduction Steps

Use the xcframework for 13.0 (realm-swift-10.15.1/13.0)with Xcode 12.5.

Version

Realm 10.15.1

What SDK flavour are you using?

Local Database only

Are you using encryption?

No, not using encryption

Platform OS and version(s)

11.4 Mac OS

Build environment

Xcode version: 12.5

@dianaafanador3
Copy link
Collaborator

Hi @ravikirankhareed You need to add the XCFramework for your XCode version, so if you are using Xcode 12.5 you should be using the XCFramework for 12.5.1.

@dianaafanador3
Copy link
Collaborator

@ravikirankhareedi closing this as there is no issue in our side.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 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

2 participants