I'm trying to have this fixed. It's clearly a bug. I've already submited a bug report (28904764) and a Radar, but never had any bugs closed and fixed. They just stay there indefinitely in the bug report portal. So, maybe some exposure will help?
I tried to isolate the issue:
This works:
if let parser = XMLParser(contentsOf: feedURL) {
print("Got instance \(parser)")
}
This does not:
class Parser: XMLParser { }
if let parser = Parser(contentsOf: feedURL) {
print("Got instance \(parser)")
}
It's clean project, with nothing but those lines of code. The issue appears to happen only to subclasses of the XMLParser.
Can we ger a fix for this?