Skip to content

Instantly share code, notes, and snippets.

@jeksys
Created June 20, 2018 00:04
Show Gist options
  • Save jeksys/32484e6baacdf34039b813bb6e4628f6 to your computer and use it in GitHub Desktop.
Save jeksys/32484e6baacdf34039b813bb6e4628f6 to your computer and use it in GitHub Desktop.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.1'
end
end
swift33Targets = ['', '']
installer.pods_project.targets.each do |target|
if oldSwiftTargets.include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.3'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment