Always get build error : No such module 'Alamofire'

You need to build the project successfully once before using the library

comment import Alamofire -> build -> uncomment import Alamofire


Make sure you have opened the "project_name".xcworkspace instead of "project_name".xcodeproj .As you are working on pods all the installed pod will be available only in your .xcworkspace project file.


I was having this exact same problem. Please make sure that you are on Xcode 7.3 and using Swift 2.2.

You can check your Swift version using xcrun swift -version. Updating Xcode to 7.3 should also automatically update Swift.

Updating Xcode resolved this issue for me.


You need to add the lib to 'the Link Binary With Libraries' section also