Skip to content

Instantly share code, notes, and snippets.

Created June 4, 2013 12:15
  • Star 16 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
source ~/.bash_profile
/path/to/ -reporter json-compilation-database:compile_commands.json clean
/path/to/ -reporter json-compilation-database:compile_commands.json build
oclint-json-compilation-database | sed 's/\(.*\.\m\{1,2\}:[0-9]*:[0-9]*:\)/\1 warning:/'
Copy link

ghost commented Dec 21, 2013

Begs the question of what "" is.

Copy link

ghost commented Jan 31, 2014

Copy link

I needed to define the -scheme argument in order to execute xctool.

Copy link

@andresbrun you won't need the -scheme argument if you put it in your .xctool-args file.

Copy link

qiuhm commented Jan 12, 2016

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.

Copy link

what is ${SRCROOT}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment