Skip to content

Instantly share code, notes, and snippets.

@songzhou21
Last active August 31, 2018 09:35
Show Gist options
  • Save songzhou21/91b817435096a7c409a7d0ed08af3192 to your computer and use it in GitHub Desktop.
Save songzhou21/91b817435096a7c409a7d0ed08af3192 to your computer and use it in GitHub Desktop.
pod using swift version
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