ios - Passing compiler flags through xcodebuild -


i'm using xcodebuild automate testing ios.

right now, i'm stuck on trying pass compiler flags through xcode directly compiler. these flags are: -fprofile-arcs -ftest-coverage.

i don't have liberty of modifying xcodeproj, that's why want inject these flags via xcodebuild command.

it like:

xcodebuild -project path/to/my.xcodeproj -scheme myapp -fprofile-arcs -ftest-coverage 

is feasible? how?

apparently compiler flags can expressed constants, , these can passed compiler via xcodebuild easily.

to them, select option in xcode build settings view, , hit command-c (copy). in case, gcc_generate_test_coverage_files , gcc_instrument_program_flow_arcs.

my command looks this:

xcodebuild gcc_generate_test_coverage_files=yes gcc_instrument_program_flow_arcs=yes ... 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -