-
Notifications
You must be signed in to change notification settings - Fork 26
Analyzer doesn't recognise IBOutlets hooked up in Objective-C super classes #21
Comments
Thanks for taking the time to report the issue! If I understand correctly this case is covered in this unit test. In there we've got:
Hard to tell what exactly is wrong but I suspect it may be one of these:
I'm planning to add a better error reporting which should make debugging issues like this easier in the future. |
You are correct, and yes, the base class is Objective-C hence it wasn't picked up. Makes perfect sense considering the tool does Swift only. I should have figured that out, sorry! 😂 |
Same issue here, we link a |
@ldiqual Yeah, we should look into that. Here's a possible approach:
It's a big task but possibly pretty interesting to work on. |
Think I am seeing the same thing. Am subclassing a |
In Xcode 9.2 and Swift 4 there is the same issue. After compiling code there is this warning: IBOutlet unused in the parent class. |
Suppose you have a class:
BaseCell
, and it has a childFancyCell
. You can hook IBOutlets from the childs XIB to the parent class, but the IBAnalyzer doesn't seem to find these, it will instead print out:FancyCell doesn't implement a required @IBOutlet named: starredView
.To be honest I'm not sure if this is a common use case, but I thought I'd note it here in case it helps.
The text was updated successfully, but these errors were encountered: