You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And this is some lldb data from the deserialised object:
(lldb) po category
RealmSwiftObject {
}
(lldb) po category.toJsonString()
"{}"
(lldb) po category.name
error: Execution was interrupted, reason: breakpoint 1.1.
The process has been returned to the state before expression evaluation.
Using 5.7.0, however:
(lldb) po category
Category {
id = 6;
name = Some name;
hexColor = #dd6254;
imageUrl = https://some.url/image.jpg;
}
(lldb) po category.toJsonString()
"{\"color\":\"#dd6254\",\"id\":6,\"imageUrl\":\"https:\\/\\/some.url\\/image.jpg\",\"name\":\"Some name\"}"
(lldb) po category.name
"Some name"
Can confirm, I have the same problem. Took me a day to figure out what happened with the project.
And now I'm stuck with broken project, because new Xcode doesn't compile the 5.8.0 version
When using Xcode 10.2 you should use EVReflection version 5.10.1 or later. If cocoapods installs an earlier version, then you should upgrade cocoapods to version 1.7.0.
I also encountered the same issue. Finally, I find source cause of this issue.
The source is swiftClassTypeFromString(_:).
It cannot be convert some Realm class, like List<FooRealmObject>.
I modified setPropertiesfromDictionary(_:anyObject:conversionOptions:forKeyPath:) back to:
Activity
volkoivan commentedon Mar 26, 2019
Can confirm, I have the same problem. Took me a day to figure out what happened with the project.
And now I'm stuck with broken project, because new Xcode doesn't compile the 5.8.0 version
evermeer commentedon Mar 28, 2019
When using Xcode 10.2 you should use EVReflection version 5.10.1 or later. If cocoapods installs an earlier version, then you should upgrade cocoapods to version 1.7.0.
evermeer commentedon Apr 1, 2019
@megavirus74 and @guilhermearaujo could you confirm that you are using EVReflection version 5.10 or later and still have this problem?
guilhermearaujo commentedon Apr 1, 2019
@evermeer a while ago I decided not to use Realm anymore and switched to the regular EVReflection.
evermeer commentedon Apr 27, 2019
If someone still has this issue, then just reopen this.
bennettyuan commentedon Aug 28, 2019
I also encountered the same issue. Finally, I find source cause of this issue.
The source is
swiftClassTypeFromString(_:).It cannot be convert some Realm class, like
List<FooRealmObject>.I modified
setPropertiesfromDictionary(_:anyObject:conversionOptions:forKeyPath:)back to:Then solved this issue of Realm crash. (But, this is a temporary solution)
I think we need rethink how to "construct" better.
evermeer commentedon Aug 28, 2019
@bennettyuan18 I will have a look at this later. Reopening this issue so that I won't forget.
tobyworks commentedon Oct 3, 2019
For anyone with the same issue for now you can use my fork in your podfile: