Try using this:
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
Please note that this will set all your goals in swift 2.3. If you want one specific, you can do something like this:
post_install do |installer| installer.pods_project.targets.each do |target| if target.pod_name == 'DesiredPod' target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' end end end end
source share