Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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'

like image 224
Nahla Taha Avatar asked Oct 19 '18 21:10

Nahla Taha


1 Answers

You are using Alamofire 5 then you should use AF.request instead of Alamofire.request.

like image 81
kchopda Avatar answered Nov 09 '22 07:11

kchopda