Xcode:Swift Alamofire 源代码中的 Dropbox 错误

Xcode: Swift Dropbox errors in Alamofire source codes

我想在我的 iOS 项目中使用 Dropbox API。

我正在执行此说明:

https://www.dropbox.com/developers/documentation/swift#install

pod install 之后,我打开我的工作区,发现 Alamofire 中有很多错误。我做错了什么?

我正在使用 Xcode 7.2.1

当您 运行 pod install for SwiftyDropbox 时,它会拉入 Alamofire via the dependency:

  s.dependency "Alamofire", "~> 3.1"

目前最新版本的 Alamofire 是 version 3.3.0。由于 Swift 2.2 的更改,"Upgrade Notes" 下有一些关于此版本如何仅在 Xcode 7.3 中工作的信息。所以,你有两个选择:

1) 升级到 Xcode 7.3
2) 恢复到旧的 Alamofire 版本