NSManagedObject(context:) has Incorrect @available() Attributes
| Originator: | paul | ||
| Number: | rdar://26801857 | Date Originated: | 6/14/2016 |
| Status: | Closed | Resolved: | 6/16/2016 |
| Product: | iOS SDK | Product Version: | 10 beta 1 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Initializing a NSManagedObject with the initializer -initWithContext: worked properly on iOS 9, but the headers list it as new for iOS 10. Steps to Reproduce: 1. Make an app that calls NSManagedObject(context:) using the iOS 9 SDK. 2. Upgrade to using the iOS 10 SDK. Expected Results: Code that was available in the iOS 9 SDK should still be available to iOS 9 apps built with the iOS 10 SDK. Actual Results: NSManagedObject(context:) is not available to iOS 9 apps that are built using the iOS 10 SDK. Version: iOS 10 SDK beta 1 Notes: Configuration: iOS Simulator Attachments: 'NSManagedObject Init Availability.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!
Resolution
Turns out that our project had a category on NSManagedObject that defined this method. Cool.
Sample Project
https://github.com/paulrehkugler/NSManagedObject-Init-Availability