Skip to content

Instantly share code, notes, and snippets.

@agisilaos
Last active July 24, 2018 17:19
Show Gist options
  • Save agisilaos/30054de73513fa9f046640a2168c979a to your computer and use it in GitHub Desktop.
Save agisilaos/30054de73513fa9f046640a2168c979a to your computer and use it in GitHub Desktop.
Have dependencies that support Swift 3.0 & Swift 4.0 and work seamlessly together. ✨
swift4Targets = ['Target-1','Target-2','Target-3']
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if swift4Targets.include? target.name
config.build_settings['SWIFT_VERSION'] = '4'
else
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment