Why can't I initialize or make a request with SessionManager in Alamofire 4.0? (UPDATED)
<p>Migrating to <code>Alamofire 4</code> and I am trying to initialize a session manager like so:</p>

<pre><code>let configuration = URLSessionConfiguration.default
configuration.timeoutIntervalForRequest = 20
configuration.httpAdditionalHeaders = ["MyCompany-User-Agent": Config.MyCompanyUserAgentDataString]
var alamoManager: SessionManager = Alamofire.SessionManager(configuration: configuration)
</code></pre>

<p>However I keep getting the error as</p>

<blockquote>
  <p>Cannot invoke SessionManager with an argument list of
  type(configuration: URLSessionConfiguration)</p>
</blockquote>

<p>I am following the syntax at <a href="https://github.com/Alamofire/Alamofire#modifying-the-session-configuration" rel="nofollow">https://github.com/Alamofire/Alamofire#modifying-the-session-configuration</a>, but mine has errors. What am I doing wrong here? Also I can't do a request from the <code>SessionManager</code>. </p>

<p><strong>For example:</strong></p>

<pre><code>Alamofire.request(url, method: .get, parameters: parameters, encoding: JSONEncoding.default).responseObject { (response: DataResponse&lt;MyCustomResponse&gt;) in
            if let result = response.result.value {} }
</code></pre>

<p>Works with <strong>no</strong> issues, <strong>BUT</strong> (where alamoManager is a SessionManager):</p>

<pre><code>alamoManager.request(url, method: .get, parameters: parameters, encoding: JSONEncoding.default).responseObject { (response: DataResponse&lt;MyCustomResponse&gt;) in
            if let result = response.result.value {} }
</code></pre>

<p>It doesn't work. I get the error as </p>

<blockquote>
  <p>Value of type SessionManager has no member request</p>
</blockquote>

<p>Very confused as to why I am getting that error. The docs clearly show an example of a <code>SessionManager</code> object using a request method. </p>

<p>I have noticed though that there are no issues with this code if I create a <strong>new</strong> project. However in my existing project these errors display. I have checked the <code>Podfile.lock</code> and the version of <code>Alamofire</code> is indeed 4.0. I have build settings to target iOS9.0 for all targets and the project. </p>

<p>Could someone help me with this please? Tearing my hair out a bit!</p>