Skip to content

Instantly share code, notes, and snippets.

@prat14k
Created June 16, 2020 10:50
Show Gist options
  • Save prat14k/8ed4cdc1e45dd1f83ef813375f03bbad to your computer and use it in GitHub Desktop.
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;
#... 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