Command line XCode project example using
Had some trouble getting Alamofire to work until someone helped me on Stack Overflow
The key was that by default the response handler gets called by Alamofire on the main thread, and main.swift is already running on the main thread, so the response handler is blocked. Once I got Alamofire directed to another thread/queue it all started working.
I highly recommend Erica Sadun's Swift Documentation Markup book