Create NSManagedObject subclass header mistakenly says do not edit this file if codegen left on

Originator:indiekiduk
Number:rdar://30051545 Date Originated:17/01/2017
Status:Open Resolved:
Product:Developer tools Product Version:8.2.1 (8C1002)
Classification:Other Bug Reproducible:Always
 
Summary:
If when you use the "Create NSManagedObject subclass" in Xcode's model editor you have Codegen set to anything other than manual/none, then the header that is generated has "This file was automatically generated and should not be edited" in it. However this isn't applicable to the file being created, that statement is only applicable to the files that Xcode creates for when code gen is turned on. 

It would also be useful when the subclass is generated for codegen to be automatically turned off if it was on, since once the developer generates the subclass they certainly do not want any further code generation.

Steps to Reproduce:
1. Create iOS master detail project with core data turned on.
2. Open the xcdatamodel
3. Choose Editor->Create NSManagedObjecrtSubclass
3. In file browser open the project subfolder (why is this necessary?)
4. Save the files.
5. Move the generated class files into the group (why is this necessary?)
6. Open any of the files and view the comment at top.

Expected Results:
Shouldn't say do not edit this file

Actual Results:
Says do not edit this file

Version:
Version 8.2.1 (8C1002)

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!