Swift 3 - NSFetchRequest Distinct Results
Any help appreciated. Xcode auto updated to 8... I am Targeting IOS 9.3 Have all of the code converted across but one thing is now breaking, I have tried various suggestions in similar questions! My fetch request that was previously working is now breaking. My goal is to get a distinct list. The app crashes on the line: let results = try context.fetch(fetchRequest) With the error described in the console as: Could not cast value of type 'NSKnownKeysDictionary1' (0x10fd29328) to 'MyApp.BodyType' (0x10eebc820). Here is the function func getBodyTypes() { let context = ad.managedObjectContext let