我已经使用 Carthage 安装了 Alamofire 5,但它一直显示没有成员请求的错误。
Alamofire.request(route).responseJSONDecodable { response in }
Module 'Alamofire' has no member named 'request'
最佳答案
您正在使用 Alamofire 5,那么您应该使用 AF.request 而不是 Alamofire.request。
关于ios - Alamofire 5 在使用 Carthage 安装后显示错误, "' Alamofire 没有名为请求的成员”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52900273/