Created
June 16, 2020 10:50
-
-
Save prat14k/8ed4cdc1e45dd1f83ef813375f03bbad to your computer and use it in GitHub Desktop.
Set the swift version and any other build setting of the installed cocoapods;
This file contains 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
#... Pods defined above | |
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
if ['URITemplate'].include? target.name | |
target.build_configurations.each do |config| | |
config.build_settings['SWIFT_VERSION'] = '4.0' | |
end | |
else | |
target.build_configurations.each do |config| | |
config.build_settings['SWIFT_VERSION'] = '5.0' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment