1

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

Community
  • 1
  • 1
Gijo Varghese
  • 11,264
  • 22
  • 73
  • 122

1 Answers1

0

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

Gijo Varghese
  • 11,264
  • 22
  • 73
  • 122
  • Well...same configuration here...Xcode8, Swift3, Alamofire 4.0 It works on the device, but not under Simulator. The annoying thing is that the network part of my app is "done". I have no deed to fiddle with it in any way. I'm just trying to correct some small Autolayout issues, and since I don't have the full spectrum of iPhones on my desk, I thought I can rely on the Simulator. – Florin Odagiu Oct 28 '16 at 15:28
  • I updated my reply. For me, it works on device, not under Simulator though – Florin Odagiu Oct 28 '16 at 15:33