Last active
August 31, 2018 09:35
-
-
Save songzhou21/91b817435096a7c409a7d0ed08af3192 to your computer and use it in GitHub Desktop.
pod using swift version
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
swift_targets_map = { | |
"Charts" => "4.1" | |
} | |
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
version = swift_targets_map[target.name] | |
if version | |
puts "#{target} using Swift #{version}" | |
config.build_settings['SWIFT_VERSION'] = version | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment