gpt4 book ai didi

ios - Alamofire 5 在使用 Carthage 安装后显示错误, "' Alamofire 没有名为请求的成员”

转载 作者:搜寻专家 更新时间:2023-10-31 22:01:08 24 4
gpt4 key购买 nike

我已经使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com