title: The file couldn’t be opened because URL type http isn’t supported
body: <p>Using iOS 9 I'm attempting to use <code>NSFileManager's</code> <code>moveItemAtURL</code>:</p>
  
  <pre><code>do {
      print(localURL) // http://localhost:3000/api/v1/activities
      print(cacheFile) // file:///Users/kyledecot/Library/Developer/CoreSimulator/Devices/35C03988-D8F5-42E5-AB35-B99BE461EEAE/data/Containers/Data/Application/69593B3A-F764-4BC3-89AD-72B701BF85C8/Library/Caches/activities.json 
      try fileManager.moveItemAtURL(localURL, toURL: cacheFile)
  } catch let error as NSError {
      print(error)
  }
  </code></pre>
  
  <p>When catching the error I'm getting:</p>
  
  <blockquote>
    <p>Error Domain=NSCocoaErrorDomain Code=262 "The file “activities” couldn’t be opened because URL type http isn’t supported." UserInfo={NSURL=<a href="http://localhost:3000/api/v1/activities" rel="noreferrer">http://localhost:3000/api/v1/activities</a>}</p>
  </blockquote>
  
  <h2>Update #1</h2>
  
  <p>I've already added the appropriate values to my <code>Info.plist</code> to ensure that ATS is happy (see screenshot). What's odd is that I am able to download the data from my local server using HTTP (via <code>dataTaskWithRequest:</code>) but NSFileManager then complains about the same URL when trying to perform <code>moveItemAtURL</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/fBwMe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fBwMe.png" alt="enter image description here"></a></p>