title: iOS Document folder is not a directory and/or is missing
body: <p>Trying to archive an array of <code>Codable</code> elements.</p>
  
  <pre><code>do {
     let data = try PropertyListEncoder().encode(elements)
     let success = NSKeyedArchiver.archiveRootObject(data, toFile:self.archiveURL.path)
     print(success ? "Successful save" : "Save Failed")
  } catch {
     print("Save Failed")
  }
  </code></pre>
  
  <p>For some reason path (<code>archiveURL</code>) is constantly wrong:</p>
  
  <pre><code>let archiveURL = FileManager().urls(for: .documentDirectory, in: .userDomainMask).first!
  </code></pre>
  
  <p>is returning always URL like this:</p>
  
  <blockquote>
    <p>file:///Users/userName/Library/Developer/CoreSimulator/Devices/deviceID/data/Documents</p>
  </blockquote>
  
  <p>but searching through folders I see no <strong>/Documents</strong> folder. Has something changed recently? It used to work few weeks back (pretty sure). Super annoying and I can't find any workaround/fix for that.</p>