Nahla Taha
Nahla Taha

Reputation: 73

Alamofire 5 showing error after installing it with Carthage, "'Alamofire has no member named request"

I've installed Alamofire 5 using Carthage, and it keeps showing error that it has no member request.

   Alamofire.request(route).responseJSONDecodable { response in }

Module 'Alamofire' has no member named 'request'

Upvotes: 7

Views: 6323

Answers (1)

kchopda
kchopda

Reputation: 342

You are using Alamofire 5 then you should use AF.request instead of Alamofire.request. Check out usage example here.

Upvotes: 19

Related Questions