Auto-generated methods for to-many relationships are not generated for Swift entities
| Originator: | tmk.szlc | ||
| Number: | rdar://22177139 | Date Originated: | 6 Aug 2015 |
| Status: | Closed as Duplicate of 22179950 (Open) | Resolved: | 18 Sep 2015 |
| Product: | Xcode | Product Version: | Xcode 7 beta 5 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When entity has to-many relationship it have generated methods like "add<Entity>sObject" or "add<Entity>Objects" and so on. When generating entities with selected Objective-C language they are presented in the "Entity+CoreDataProperties" file. But when generating classes in Swift there is no such methods declared even in Xcode 7 beta 5 when we're able to do this and we have to do this manually. Steps to Reproduce: 1. Open project 2. Generate entities for Objective-C 3. See there are auto-generated methods presented in one of the files 4. Remove all generated files 5. Generate files for Swift 6. See there is no such methods declared. Expected Results: Auto-generated methods for to-many relationships should be presented in Entity+CoreDataProperties.swift file automatically after generating subclasses Actual Results: No methods presented in Swift files Version: Xcode 7 beta 5, iOS 9 beta 5 Notes: Configuration: 10.10.4, Xcode 7 beta 5 Attachments: 'NewNSManagedExample.zip' was successfully uploaded.
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!