Issues with NSCoding and designated initializer warnings in Xcode 7.0

Originator:google
Number:rdar://21374713 Date Originated:14-Jun-2015 10:28 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.0 (7A120f)
Classification:Other Bug Reproducible:Always
 
Summary:
When building the sample project with Xcode 7 you get two unexpected warnings.

Steps to Reproduce:
Build sample project available at https://github.com/JanX2/NSCodingDesignatedInitializer

Expected Results:
No warnings.

Actual Results:
Two warnings:
MyTestFormatter.m:35:16: Convenience initializer should not invoke an initializer on 'super'
MyTestFormatter.m:33:1: Convenience initializer missing a 'self' call to another initializer

Regression:
Worked fine in Xcode 6.3.2.

Notes:
You can work around the issue by setting ENABLE_WORKAROUND=1 in the sample project.

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!