Last active
July 24, 2018 17:19
-
-
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. ✨
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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