Search code examples
swiftalamofire

Problem with Swift version using Alamofire


SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'Alamofire')

I am getting this message and my app build fails. Kindly help me out as I have all things up to date.


Solution

  • Go to your POD's project Settings, select your target (Alamofire in this case), then in the Build Settings Section, search for swift language version and change it to 4.2