如何修复Alamofire library的错误?

时间:2016-10-18 06:51:23

标签: ios iphone swift alamofire xcode7.3

我正在使用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

enter image description here

1 个答案:

答案 0 :(得分:2)

Alamofire 4.0.1正在使用Swift 3,而Xcode 7.x不支持它。您应升级到Xcode 8以使用最新的Alamofire。