How to set the Legacy Swift Version for each Pod in Podfile Xcode 9.0 Swift 3.2 / Swift 4.0
I am currently setting the legacy in the Podfile to SWIFT_VERSION = 2.3 , but some of the libraries I am using are Swift 3.0, which means that I need to manually set the legacy for all Swift 3.0 pods legacy to No on each pod install . How do I configure each pod version in the Podfile installer? This is what I am setting: post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' end end end If I set config.build_settings['SWIFT_VERSION'] = '3.0' , than we have issues with Swift 2.3