 <p>Change Swift Compiler optimization Level to </p> <blockquote> <p>Fast, Single File Optimization</p> </blockquote> <p>instead of whole module! <a href="https://i.stack.imgur.com/eJxcl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eJxcl.png" alt="see the highlighted"></a> Something seems unusual with whole module optimization and Alamofire!</p>