Mac*_*tle 15
从16年9月初开始,您需要在Podfile中使用以下内容:
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :tag => '3.5.0'
Run Code Online (Sandbox Code Playgroud)
指向swift2.3分支不再有效,因为该分支已被删除.标签"3.5.0"指向支持Swift 2.3的master上的最后一个版本.
有关 Xcode 8 + Swift 2.3 对 Alamofire 支持的更多信息: https://github.com/Alamofire/Alamofire/pull/1313
尝试将您的 Pod 更新为
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :tag => '3.5.0'(已更新)
更新:如果您有兴趣保持 Xcode7 兼容性,并且仍然能够针对 iOS10/swift 2.3 进行开发,那么这是一个很好的指南: http: //radex.io/xcode7-xcode8/