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
Post a Comment