-
Notifications
You must be signed in to change notification settings - Fork 1k
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
"Must call a designated initializer of the superclass 'Navigator'" error has occurred. #378
Comments
Hi there, I just tested this code and I am not getting any errors. Are you still having this problem? |
I have exactly the same problem: import ObjectMapper
import RealmSwift
class WRUser: Object, Mappable {
dynamic var ID: Int = 0
dynamic var email: String = ""
// MARK: - Init
required convenience init?(_ map: Map) {
self.init()
}
func mapping(map: Map) {
ID <- map["user.id"]
email <- map["user.email"]
}
} Actually building a project gives an error: Must call a designated initializer of the superclass "WRUser" Any thoughts? UPDATE: @nashirox did you subclass? Any idea why does this happen? |
Having same issue with a subclass of another mappable object. This issue says closed but there does not appear to be a solution? |
Hi, So, in above case :
Hope this help |
I'm using ObjectMapper with Realm with these version.
But when added new class with Realm + ObjectMapper, an error has occured.
below line is error message.
Must call a designated initializer of the superclass 'Navigator'
and thisi is new class i added.
this class works correctly.
so i'm confused what to do next.
someone please give me advices.
The text was updated successfully, but these errors were encountered: