-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mappable crashing in List<StringValue> #311
Comments
After a bit more research this issue seems to manifest for |
Hi @ifabijanovic, thanks for report this bug and i'm glad to say that we already have a fix for it and will be released in the next version. Until we release the new version you can test using the The PR in under review right now. |
Hello, I've tested with 3.18.2 and issue is still present |
@ifabijanovic are you getting the same issue using 3.18.2 or is a different issue? |
btw, your code should be
|
Yeah sorry, I did initialize the list property (updated snippet) otherwise it wouldn't compile. I am getting the same issue - Strangely I have other models with similar structure (List in
I tried migrating this model to |
@ifabijanovic could you confirm the |
realm-cocoa v3.7.5, I use Carthage for dependency management. |
I believe this PR #314 can fix your problem. Let me know if you are able to test against this branch, otherwise it will be available in the next release. |
Hello, I've tested on branch From my point of view, this issue is resolved. You do however have a backwards compatibility issue here. |
While testing the above branch I ran into an issue when trying to implement |
After updating to version 3.18.1 my models are crashing when trying to map
List<StringValue>
with exception:Terminating app due to uncaught exception 'RLMException', reason: 'Invalid value 'XXXXX' to initialize object of type 'StringValue': missing key 'value''.
Model looks something like this:
Tested on iPhone 8 simulator, iOS 11.4. Happens regardless if its a fresh app install or update from app running an older Kinvey SDK (and maybe performing a data migration). Xcode 9.4.1, macOs 10.13.6.
Shift to
Codable
is a really big change, is the SDK going to major version 4 soon whenMappable
support is removed?The text was updated successfully, but these errors were encountered: