Skip to content

Instantly share code, notes, and snippets.

@hectorddmx
Created June 10, 2018 06:07
Show Gist options
  • Save hectorddmx/eac8bfc1d13e4cc6fbe5b56b51d8dcea to your computer and use it in GitHub Desktop.
Save hectorddmx/eac8bfc1d13e4cc6fbe5b56b51d8dcea to your computer and use it in GitHub Desktop.
Ignore framework warnings
post_install do |installer|
ignored_targets = ["autocontratacion-gonet", "Pods-autocontratacion-gonet_Example", "Pods-autocontratacion-gonet_Tests"]
puts "\nSetting up targets."
installer.pods_project.targets.each do |target|
unless ignored_targets.include?(target.name)
puts "Disabling warnings for target #{target}"
target.build_configurations.each do |config|
config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = "YES"
end
else
puts "Enabling warnings for target #{target}"
target.build_configurations.each do |config|
config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = "NO"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment