Created
June 4, 2013 12:15
-
-
Save lqi/5705477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.bash_profile | |
cd ${SRCROOT} | |
/path/to/xctool.sh -reporter json-compilation-database:compile_commands.json clean | |
/path/to/xctool.sh -reporter json-compilation-database:compile_commands.json build | |
oclint-json-compilation-database | sed 's/\(.*\.\m\{1,2\}:[0-9]*:[0-9]*:\)/\1 warning:/' |
danzaph, check out
https://github.com/facebook/xctool
I needed to define the -scheme argument in order to execute xctool.
@andresbrun you won't need the -scheme
argument if you put it in your .xctool-args file.
My script is xcodebuild -target OCLintSample clean
xcodebuild -target OCLintSample | xcpretty -r json-compilation-database
oclint-json-compilation-database -- -report-type xcode.
But it doesn't work.
what is ${SRCROOT}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Begs the question of what "xctool.sh" is.