Search code examples
swiftxcodealamofirecarthage

Unable to build Alamofire framework in new Xcode 10.2 (iOS 12.2)


I am unable to build Alamofire for swift 5 in Xcode 10.2, iOS 12.2, because of the following error

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

Is there a solution to this?


Solution

  • As for Carthage use

           github "Alamofire/Alamofire" "5.0.0-beta.3"
    

    in your Cartfile