build error: Declaration of 'RealmSwiftObject' must be imported from module 'Realm.Swift' before it is required
Activity
arturdev commentedon Mar 19, 2023
@cellgit Which package manager did you use to install the library?
cellgit commentedon Mar 20, 2023
@arturdev CocoaPods
zbockskopf commentedon Mar 24, 2023
+1
zbockskopf commentedon Mar 24, 2023
Adding '@import Realm.Swift;' fixes the issue for now
arturdev commentedon Apr 17, 2023
The issue has been fixed. Check 1.9.5
ashugabani commentedon Apr 27, 2023
Adding '@import Realm.Swift;' With Xcode 14.2 not working
arturdev commentedon Apr 27, 2023
make sure you're using the latest version of the Realm. Check your podfile and run
pod update --repo-updateashugabani commentedon Apr 27, 2023
@arturdev I am installing using Package Dependencies. So realm is already installed by package
arturdev commentedon Apr 27, 2023
@ashugabani which version have you installed of Realm?
ashugabani commentedon Apr 27, 2023
@arturdev Realm version is 10.25.2
arturdev commentedon Apr 27, 2023
@ashugabani you should update the realm version.. it is too old...
https://github.com/realm/realm-swift/releases
ashugabani commentedon Apr 27, 2023
@arturdev When I add a package of Unrealm then it already add that realm version.
arturdev commentedon Apr 27, 2023
@ashugabani Ah.. that makes sense now.. I've fixed it only for cocoapods..
ashugabani commentedon Apr 27, 2023
@arturdev so any update possible?
arturdev commentedon Apr 27, 2023
will try to update during the next days