Skip to content

Instantly share code, notes, and snippets.

@lanserxt
Created April 20, 2019 05:32
Show Gist options
  • Save lanserxt/7857a3794148865dd1ec1252beddf533 to your computer and use it in GitHub Desktop.
Save lanserxt/7857a3794148865dd1ec1252beddf533 to your computer and use it in GitHub Desktop.
Cocoapods Swift version setup for specific Pod
#insert after all pods declaring (just put at the bottom of a file)
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'POD_NAME_HERE'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment