Xcode 9 generates different code for an attribute of the Date type of the object in the simulator and device. I have a codegen function in Class set to category/extension in coredata.
Prior to Xcode 8.3 (the latter), everything worked fine ( NSDate always). Below is the code automatically generated by Xcode 9 (Swift 4) code for the attribute
On the device : -
@NSManaged public var requiredDate: Date?
and
In the simulator : -
@NSManaged public var requiredDate: NSDate?

Has anyone encountered this issue? What is the best solution for a 50+ member project to fix this until the Xcode update fixes it (I hope there is an apple radar for this)?
date xcode core-data nsmanagedobject codegen
Ashok
source share