-Swift.h does not include alloc/allocWithZone:

Originator:brian.nickel
Number:rdar://17184317 Date Originated:05-Jun-2014 01:49 PM
Status:Resolved Resolved:19-Nov-2014 05:20 PM
Product:Developer Tools Product Version:Version 6.0 (6A215l)
Classification: Reproducible:
 
Swift generated classes respond to the alloc/allocWithZone: selectors but do not expose those selectors or relevant superclasses/protocols in -Swift.h.  This means the classes can't be initialized as normal.

@objc class Sw1 {}

yields

SWIFT_CLASS("_TtC13Radar171834253Sw1")
@interface Sw1
- (instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

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!