Primitive Date types generated as NSTimeInterval instead of TimeInterval

Originator:brianaking
Number:rdar://27194983 Date Originated:06-Jul-2016 10:09 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8 beta 2
Classification:UI/Usability Reproducible:Always
 
Summary:
If you select the ‘Use Scalar Type’ check box for a Date attribute in Core Data, the generated code is of type ’NSTimeInterval’ which does not compile. Since it is generated code, it can not be modified.

Steps to Reproduce:
Create a scalar Date attribute, attempt to build

Expected Results:
The project builds

Actual Results:
Build fails with:  'NSTimeInterval' has been renamed to 'TimeInterval'

Regression:
This does not occur if ’Use Scalar Type’ is not selected.

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!