- Add a new Target of kind Aggregate, name it OCLint
- Under Builde Phases, add a new Run Script Phase
- Paste the script
- Select target OCLint
- Build the target (press ⌘+B)
- Wait for the script to run
- Warnings will appear in the Issue Navigator (press ⌘+4)
- Rules can be ignored by adding the parameter
-disable-rule=<RuleName>
to theoclint-json-compilation-database
command - A comprehensive list of rules can be found at OCLint documentation