Using Core Data generated classes and ordered relationship causes crash
| Originator: | krismarkel | ||
| Number: | rdar://11119497 | Date Originated: | 3/26/2012 |
| Status: | Closed | Resolved: | Duplicate |
| Product: | iPhone SDK | Product Version: | 5.1 |
| Classification: | Crash | Reproducible: | Always |
Summary: If you create a Core Data entity with an ordered relationship and then generate the NSManagedObject subclass, using some of the methods leads to a crash. Steps to Reproduce: (Shorter version: download, build, and run the included project file.) 1. Create a new Master-Detail Application and check the use Core Data checkbox. (I also chose "Use Automatic Reference Counting".) 2. Create a new entity and establish a to-many relationship from Event to your new entity. Check the Ordered checkbox for the relationship. 3. Have Xcode create the NSManagedObject subclasses for your entities. 4. Add some code to call the add*Object method on an instance of the event MO subclass. Expected Results: The relationship is created between the objects. Actual Results: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSSet intersectsSet:]: set argument is not an NSSet' Regression: Notes: This was done using Xcode 4.3.2.
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!
Duped by Apple
Original radar: 10114310
Duped with rdar://11119646
Duped with rdar://11119646