Skip to content

Instantly share code, notes, and snippets.

@zats
Last active July 20, 2016 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zats/15bf488a6e548aaa7c6479d36424a918 to your computer and use it in GitHub Desktop.
Save zats/15bf488a6e548aaa7c6479d36424a918 to your computer and use it in GitHub Desktop.
target '…' do
end
post_install do |installer_or_rep|
installer = installer_or_rep.respond_to?(:installer) ? installer_or_rep.installer : installer_or_rep
installer.pods_project.build_configurations.each do |config|
# Only in debug
if config.name.include?("Debug")
# GCC optimization level = None
config.build_settings['GCC_OPTIMIZATION_LEVEL'] = '0'
# Enable assertions
config.build_settings['ENABLE_NS_ASSERTIONS'] = 'YES'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment