Search code examples
swiftxcodecocoapodsalamofireswift3

Migration to swift 3


I am trying to migrate to swift 3.

  1. I have already updated the podfile with the latest version of libraries written in swift 3.
  2. I have updated the cocoapods as for Alamofire as mentioned here.
  3. I have run pod install and pod update
  4. I have cleaned the build folder and also performed project clean.

Still I keep getting Dependency Analysis Error for Alamofire. Also I keep getting the pod frameworks in the targets to convert even when I have already updated the pods.

enter image description here

Note that I have already converted my source code successfully into swift 3. enter image description here


Solution

  • In Build Settings, set Use Legacy Swift Language Version to No if you use swift3 in xcode8