Skip to content

Instantly share code, notes, and snippets.

@nebiros
Created October 2, 2018 01:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nebiros/04829acf5c7d43ebba87f64371f0556a to your computer and use it in GitHub Desktop.
Set swift version for a specific pod
post_install do |installer|
installer.pods_project.targets.each do |target|
next unless %w[NonSwift42Pod].include? target.name
target.build_configurations.each do |config|
config.build_settings["SWIFT_VERSION"] = "4.0"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment