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

When integrate the realm-swift that build with xcframework, there will be have many errors #8014

Closed
edison0951 opened this issue Nov 2, 2022 · 3 comments · Fixed by #8016

Comments

@edison0951
Copy link

edison0951 commented Nov 2, 2022

How frequently does the bug occur?

All the time

Description

I have build the real-swift with xcframework and I integrate it in the xcode project. But there will have an error that is "Failed to build module for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug". This is a bug in Swift SR-14195. Because the real-swift have the public method Realm that is conflict with Realm module. so how can I fix this bug?

Stacktrace & log output

SwiftRealm.framework/Modules/SwiftRealm.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:99:17: error: 'RLMApp' is not a member type of struct 'Realm'

SwiftRealm.framework/Modules/SwiftRealm.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:2462:23: note: 'Realm' declared here
@frozen public struct Realm {
                      ^

Can you reproduce the bug?

Yes, always

Reproduction Steps

step1: build the realmswift in xcframework

step2: integrate in xcode project

step3: import xcframework

Version

10.32.0

What SDK flavour are you using?

Local Database only

Are you using encryption?

Yes, using encryption

Platform OS and version(s)

iOS

Build environment

Xcode version: 14
Dependency manager and version: OSX 12.6

@edison0951 edison0951 changed the title when integrate the realm-swift that build with xcframework, there will be have error "" when integrate the realm-swift that build with xcframework, there will be have errors Nov 2, 2022
@edison0951 edison0951 changed the title when integrate the realm-swift that build with xcframework, there will be have errors when integrate the realm-swift that build with xcframework, there will be have many errors Nov 2, 2022
@edison0951 edison0951 changed the title when integrate the realm-swift that build with xcframework, there will be have many errors When integrate the realm-swift that build with xcframework, there will be have many errors Nov 2, 2022
@tgoyne
Copy link
Member

tgoyne commented Nov 4, 2022

While #8016 fixes this build failure, I don't recommend trying to build Realm Swift in library evolution mode. It is something which is very focused on Apple's specific requirements and tends to be buggy for third-party usage. We have not extensively tested it to verify that everything actually works.

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Nov 4, 2022
@edison0951
Copy link
Author

I change the Realm to RealSwift locally, and it works. I hope to solve it officially.

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Nov 6, 2022
@sync-by-unito sync-by-unito bot removed the Needs-Attention Reporter has responded. Review comment. label Nov 7, 2022
@SyedTayyab99
Copy link

@edison0951 Can you please elaborate or provide an example I'm facing same issue. Thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants