-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Migrating to Swift 3 [Help wanted] #285
Comments
I think this might be similar to the problem I'm having in #280. |
Thanks for reporting this bug, @AnnieNinaJoyceV. I was able to reproduce it. #286 |
@pwestrich Yeah, looks like they could be related. |
@AnnieNinaJoyceV I was able to reproduce, probably because I'm using |
@3lvis thank you for having a look on this issue. The original response doesn't have 'id' included. Thus mine has |
Hi @AnnieNinaJoyceV I'm having a hard time reproducing this bug. Seems to be working fine from here. |
Any ideas on what I could try to reproduce the crash? |
@3lvis ah, I'm not sure.. Even it works for me if I use swift 2.3 branch. The live app uses 2.3 branch. Is there something I might have probably missed? |
Or I will try to make a demo project and share by Monday? |
@AnnieNinaJoyceV I'll try to reproduce on the Swift 2.3 branch. If it works there as well, a demo project would be very useful. Thanks for following up! Have a great weekend 🌻 |
Sure, great weekend to you too :) |
Hi @3lvis I hope you had a great weekend. Here is a very rough demo project for this issue - https://www.dropbox.com/s/mcmrigrnczxh5ku/Sync285.zip?dl=0 |
Thanks for supplying the demo project. I used it to verify that this was fixed on the latest Sync release. Fixed on Sync 2.1.2 |
Here is my CoreData model
for example JSON,
Related code:
`func getFilmographyDetailsFromServer(completion: @escaping (NSError?) -> Void) {
The same core data setup works fine without any issues in
Xcode 7 & Swift 2
But in `Xcode 8 & Swift 3', it is crashing at this line,
~/Pods/Sync/Source/NSManagedObject+Sync.swift
let localItems = localRelationship.value(forKey: entity.sync_localPrimaryKey()) as? NSSet ?? NSSet()
With crash log,
Any help is much appreciated to get this fixed. Thanks!
The text was updated successfully, but these errors were encountered: