fastred / IBAnalyzer

Find common xib and storyboard-related problems without running your app or writing unit tests.
http://holko.pl
MIT License
951 stars 26 forks source link

Swift 4.1 false positives #34

Closed devandsev closed 6 years ago

devandsev commented 6 years ago

Environment

XCode 9.3 Swift 4.1

Problem

IBAnalyzer gives and an error xib:19:88: warning: IBOutlet missing: tableHeight is not implemented in SomeView.xib even though tableHeight is implemented. There's no such error with XCode 9.2 and Swift 4.0.3.

Solution

The root of the problem is incorrect parsing, which results in Class with empty outlets/actions. Need to fix code parsing for Swift 4.1.