我正在使用Xcode7.3.1并添加了Alamofire(4.0.1)版本。但是当我尝试运行该项目时,我在Alamofire库中遇到了很多错误。请查找附带的屏幕截图包含错误。我的podfile包含如下内容。如何修复这些错误?
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'ALamoWeather' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for ALamoWeather
pod 'Alamofire'
end
答案 0 :(得分:2)
Alamofire 4.0.1正在使用Swift 3,而Xcode 7.x不支持它。您应升级到Xcode 8以使用最新的Alamofire。