A linter tool to normalize
.storyboard files. Inspired by realm/SwiftLint
$ brew install IBDecodable/homebrew-tap/iblinter
This will download the IBLinter binaries and dependencies in
Pods/ during your next
pod install execution and will allow you to invoke it via
in your Script Build Phases.
Compiling from source
You can build from source by cloning this repository and running
$ make install
iblinter will be installed in
You can see all description by
lintprints lint warnings and errors (default command)
--pathdefault is current directory.
Run Script Phase to integrate IBLinter with Xcode
if which iblinter >/dev/null; then iblinter lint else echo "warning: IBLinter not installed, download from https://github.com/IBDecodable/IBLinter" fi
Alternatively, if you've installed IBLinter via CocoaPods the script should look like this:
||Custom class name of ViewController in storyboard should be same as file name.|
||Forbid to use
||Display error when views are misplaced.|
||Force to use
||Display warning when view has duplicated constraint.|
||Check that Storyboard ID same as ViewController class name.|
||Check if image resouces are valid.|
Pull requests are encouraged.
You can configure IBLinter by adding a
.iblinter.yml file from project root directory.
||Enabled rules id.|
||Disabled rules id.|
||Path to ignore for lint.|
enabled_rules: - relative_to_margin disabled_rules: - custom_class_name excluded: - Carthage