Xcode 9.3 beta 1: overly aggressive disallowing implementations marked with "deprecated" attribute

Originator:kbeitz
Number:rdar://37015317 Date Originated:2018.01.29
Status:Closed Resolved:fixed in 9.3 beta 2
Product:Xcode Product Version:9.3 beta 1
Classification: Reproducible:
 
Summary: Xcode 9.3 beta is emitting a diagnostic disallowing the implementation of classes and methods marked with __attribute__((deprecated()))


Steps to Reproduce:
1. create a class interface (or method interface) as follows:

  __attribute__((deprecated("TFNAutocompleteTableViewCell is deprecated. Do not use in new code")))
  @interface TFNAutocompleteTableViewCell : TFNTableViewCell

2. attempt to implement the class (or method interface)


Expected Results: as the class (or method) is only marked obsolete, its implementation should be allowed


Actual Results: TFNAutocompleteTableView.m:85:17: Implementing deprecated class


Version/Build: Xcode 9.3 beta

Comments

This behavior exists in XCode 9.2 as well

By sinophilic at May 21, 2018, 3:26 p.m. (reply...)

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!