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

Can't build xcode14.2 #72

Open
cellgit opened this issue Mar 19, 2023 · 15 comments
Open

Can't build xcode14.2 #72

cellgit opened this issue Mar 19, 2023 · 15 comments

Comments

@cellgit
Copy link

cellgit commented Mar 19, 2023

build error: Declaration of 'RealmSwiftObject' must be imported from module 'Realm.Swift' before it is required

@arturdev
Copy link
Collaborator

@cellgit Which package manager did you use to install the library?

@cellgit
Copy link
Author

cellgit commented Mar 20, 2023

@arturdev CocoaPods

@zbockskopf
Copy link

+1

@zbockskopf
Copy link

Adding '@import Realm.Swift;' fixes the issue for now

@arturdev
Copy link
Collaborator

The issue has been fixed. Check 1.9.5

@ashugabani
Copy link

ashugabani commented Apr 27, 2023

Adding '@import Realm.Swift;' With Xcode 14.2 not working

@arturdev
Copy link
Collaborator

make sure you're using the latest version of the Realm. Check your podfile and run
pod update --repo-update

@ashugabani
Copy link

@arturdev I am installing using Package Dependencies. So realm is already installed by package

@arturdev
Copy link
Collaborator

@ashugabani which version have you installed of Realm?

@ashugabani
Copy link

@arturdev Realm version is 10.25.2

@arturdev
Copy link
Collaborator

arturdev commented Apr 27, 2023

@ashugabani you should update the realm version.. it is too old...

https://github.com/realm/realm-swift/releases

@ashugabani
Copy link

@arturdev When I add a package of Unrealm then it already add that realm version.

@arturdev
Copy link
Collaborator

@ashugabani Ah.. that makes sense now.. I've fixed it only for cocoapods..

@ashugabani
Copy link

@arturdev so any update possible?

@arturdev
Copy link
Collaborator

will try to update during the next days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants