Class: Xcodeproj::Project::Object::XCBuildConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-unit-test/xcodeproj/build_configuration.rb

Overview

Encapsulates the information a specific build configuration referenced by a XCConfigurationList which in turn might be referenced by a PBXProject or a PBXNativeTarget.

Instance Method Summary collapse

Instance Method Details

#coverage_build_settings=(flag) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/cocoapods-unit-test/xcodeproj/build_configuration.rb', line 12

def coverage_build_settings=(flag)
  value = 'NO'
  value = 'YES' if flag
  
  build_settings['CLANG_ENABLE_CODE_COVERAGE'] = value
  build_settings['GCC_INSTRUMENT_PROGRAM_FLOW_ARCS'] = value
  build_settings['GCC_GENERATE_TEST_COVERAGE_FILES'] = value
end