Search code examples
iosswiftalamofire

Error: Module Alamofire has no member named 'request'


I have installed Alamofire to my project through cocoapods. After opening the project and putting the sample code from Alamofire github, I'm getting this error:

"Module 'Alamofire' has no member named 'request'

I have tried all solutions in the thread: Module 'Alamofire' has no member named 'request' But couldn't find the solution.

enter image description here


Solution

  • I updated to XCode 8 with Swift 3.0 and Alamofire version 4.0. Everything working perfectly now