Xcode 8 beta Alamofire compiler error after updating pod to 3.4.1

I downloaded an outdated fast application using git and ran pod update . After git add -A I open the workspace using xcode 8 beta, then Product -> Clean and build. I get 40 fast Alamofire compiler errors. I did not run convert o swift 2.3 or swift 3.

Podfile.lock has version 3.4.1 for Alamofire.

in the subfile, I installed the version in ios 10.0, and in Alamofire info I also installed the infoDictionary version in 10.0, but that didn’t matter.

These are mostly syntax errors, for example, NSURL needs to rename URLs, etc.

I can not find answers to this problem with Google.

+6
source share
1 answer

Xcode 8 compiles against the iOS 10 SDK. This is slightly different from the iOS 9 SDK and therefore bugs. You cannot use Xcode 8 with Swift 2.2 code.

If you look at the Alamofire branches, https://github.com/Alamofire/Alamofire/branches , you will see work with compatibility 2.3 and 3.0.

Also, read this thread for more information on how to use these branches: https://github.com/Alamofire/Alamofire/issues/1312 .

+2
source

All Articles