Additional references of CoreDataProperties extension when re-generating model

Originator:tmk.szlc
Number:rdar://21785404 Date Originated:12 July 2015
Status:Open Resolved:
Product:Xcode Product Version:7 beta 3
Classification:Bug Reproducible:Always
 
Summary:
After Core Data model is generated class for e.g. entity EntityA is generated and EntityA+CoreDataProperties is generated too. After you want to regenerate it again after model changed Xcode will ask if should replace existing EntityA+CoreDataProperties file. After confirming to the project is added another reference to EntityA+CoreDataProperties file, so you've got two references to the same file.

Steps to Reproduce:
1. Create project with Core Data
2. Add Entity with some properties
3. Generate class for the model using Editor > Create NSManagedObject Subclass
4. Select correct entity
5. See there is on Entity class and one Entity+CoreDataProperties extension
6. Add new property to the model
7. Regenerate subclass
8. Confirm replacing CoreDataProperties extension
9. See there are two references of CoreDataProperties extension.

Expected Results:
Another reference should not be added when regenerating subclass.

Actual Results:
Two references of CoreDataProperties extension are presented in project navigator

Version:
Xcode 7 beta 3, OSX 10.10.4

Notes:


Configuration:


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!