Legacy Swifty Error with Cocoa Pods


I have Cocoa Pods version 1.2

I’m trying to install a plugin and I receive the error on build:

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

My podfile is:

pod 'SwiftyCam'

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'