Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

danzaph commented Dec 21, 2013

Begs the question of what "xctool.sh" is.

@CalQL8ed-K-OS

This comment has been minimized.

CalQL8ed-K-OS commented Jan 31, 2014

@andresbrun

This comment has been minimized.

andresbrun commented Jan 20, 2015

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

@ahfarmer

This comment has been minimized.

ahfarmer commented Aug 21, 2015

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

@qiuhm

This comment has been minimized.

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.

@Nagesh-Chandan

This comment has been minimized.

Nagesh-Chandan commented Jul 13, 2016

what is ${SRCROOT}

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