Alamofire: Using Alamofire on Swift 2.3

Created on 25 Sep 2016  ·  3Comments  ·  Source: Alamofire/Alamofire

Hi there!

Which version do I have to use if I want to compile my project with Alamofire on Swift 2.3?

Cheers!

Matthijs

support

Most helpful comment

Use this:
pod 'Alamofire', '~> 3.5'

All 3 comments

Use this:
pod 'Alamofire', '~> 3.5'

I just used that, and enabled 'Use Legacy Swift Version' (set it to yes), but now when I try to run my project I get 275 errors?

You need to use the following:

CocoaPods

You need to use CocoaPods 1.1.0-rc.2 which can be installed with:

  • gem install cocoapods --pre

Then your Podfile should include:

  • pod 'Alamofire', '~> 3.5'

Xcode

You should be using Xcode 8 (the official release) and Swift 2.3. Make sure you project is updated accordingly.

Summary

If you're continuing to run into issues, the last thing you can try is to wipe DerivedData. From there, you'll need to open a new question on Stack Overflow for additional help.

Cheers. 🍻

Was this page helpful?
0 / 5 - 0 ratings