Skip to content

Instantly share code, notes, and snippets.

@kcharwood
Created August 2, 2013 13:18
Show Gist options
  • Save kcharwood/6139806 to your computer and use it in GitHub Desktop.
Save kcharwood/6139806 to your computer and use it in GitHub Desktop.
Post Install
post_install do |installer_representation|
installer_representation.project.targets.each do |target|
target.build_configurations.each do |config|
if (config.name.match(/[Dd]ebug/))
config.build_settings['GCC_OPTIMIZATION_LEVEL'] = 0
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = 'DEBUG=1 $(inherited)'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment