Search code examples
iosswiftalamofire

Why do I get a lot of errors while adding Alamofire framework?


I try to add Alamofire framework for IOS using cocoapods and adding it directly to the project. I get a lot of compiler errors in both cases though I follow all the guides.

enter image description here

Perhaps somebody can help me?


Solution

  • What version of Xcode and Alamofire are you using?

    I can see an error there for Do-While which was removed in Swift 2.0

    I guess you need to Upgrade to Xcode 7. Then follow again the steps from Alamofire Readme Page on Github.

    I personally prefer CocoaPod to add frameworks.