Created
June 10, 2018 06:07
-
-
Save hectorddmx/eac8bfc1d13e4cc6fbe5b56b51d8dcea to your computer and use it in GitHub Desktop.
Ignore framework warnings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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