Xcode 7.3: iOS "Master-Detail" project template has Swift 2.2 warnings
| Originator: | rsattar | ||
| Number: | rdar://25345902 | Date Originated: | 24-Mar-2016 02:02 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.3 (7D175) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary:
When creating an iOS “Master-Detail” project from the new project template, Xcode shows a warning for using a string-based selector ("insertNewObject:”), which was deprecated in Swift 2.2.
Steps to Reproduce:
1. In Xcode 7.3, create a new Project
2. Choose iOS > Master-Detail
3. Give it a name, and ensure the project is in Swift.
Expected Results:
Project template is applied and there are no warnings.
Actual Results:
A warning is immediately shown for the new code: “[path to project]/MasterViewController.swift:22:90: Use of string literal for Objective-C selectors is deprecated; use '#selector' instead”
Notes:
Attached a screenshot of the relevant warning (and here is the remote link: http://cl.ly/3G3R2q1r1W2b
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!