Alamofire: Downloading Alamofire via Cocoapods: Getting update Swift syntax.

Created on 9 Oct 2016  路  4Comments  路  Source: Alamofire/Alamofire

I am have Xcode 8 and using Swift 3. I am download Alamofire using the Podfile template provided in the readme file. The problem I'm having, and I can't seem to understand is why I am getting popups to update to the latest Swift syntax. How do I fix this?

Most helpful comment

Solution

  • Run pod update to update to Alamofire 4.0.1
  • Convert to to latest Swift version
  • Build and Run app

All 4 comments

just press later ;)

@orassr Doesn't work, it ask to set it to use a legacy swift version. I change the option to use a Legacy Swift Version, then I get 625 errors instantly pop up.

http://i.imgur.com/xUtvE4j.png

I got the same issue after run "pod install" for installing other frameworks yesterday. Problem solved now. Below is what I did.

  1. run the "pod update" command. This update my Alamofire from 4.0 to 4.0.1
    2.open my project in xcode. It ask me to concert and I did. After concert to swift 3, get hundreds errors/warnings.
  2. Don't bother with the errors. Just build and run the project and the error disappear.

Solution

  • Run pod update to update to Alamofire 4.0.1
  • Convert to to latest Swift version
  • Build and Run app
Was this page helpful?
0 / 5 - 0 ratings

Related issues

yokesharun picture yokesharun  路  3Comments

matthijsotterloo picture matthijsotterloo  路  3Comments

tobiasoleary picture tobiasoleary  路  3Comments

hengchengfei picture hengchengfei  路  3Comments

yamifr07 picture yamifr07  路  3Comments