post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if (target.name == 'APAddressBook' || target.name == 'CocoaLumberjack') if (config.name == 'Debug') config.build_settings['GCC_GENERATE_TEST_COVERAGE_FILES'] = 'YES' config.build_settings['GCC_INSTRUMENT_PROGRAM_FLOW_ARCS'] = 'YES' end end end end end end
post_install do |installer_representation| installer_representation.pods_project.targets.each do |target| target.build_configurations.each do |config| if config.name != 'Release' config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'DEBUG=1'] end end end end
关闭Pod库的编译优化
1 2 3 4 5 6 7 8 9 10
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if (config.name == 'Debug') config.build_settings['GCC_OPTIMIZATION_LEVEL'] = '0' end end end end end