Value of type 'FileManager' has no member 'urlsForDirectory' - AppDelegate Swift 3 Error
<p>Since I recently updated to XCode 8 Beta 5 I have been trying to solve this error in my appDelegate Core Data Stack.</p>

<p>In these lines of code I get the following error: </p>

<pre><code>// MARK: - Core Data stack

lazy var applicationDocumentsDirectory: URL = {
    // The directory the application uses to store the Core Data store file. This code uses a directory named "fitness.paceapp.Pace" in the application's documents Application Support directory.
    let urls = FileManager.default.urlsForDirectory(.documentDirectory, inDomains: .userDomainMask)
    return urls[urls.count-1]
}()

lazy var managedObjectModel: NSManagedObjectModel = {
    // The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model.
    let modelURL = Bundle.main.urlForResource("Dominos", withExtension: "momd")!
    return NSManagedObjectModel(contentsOf: modelURL)!
}()
</code></pre>

<p><a href="https://i.stack.imgur.com/JjiOC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JjiOC.png" alt="enter image description here"></a></p>

<p>Any Ideas on what I could be missing. I am quite lost and there are not many answers out there. Thanks in advance. </p>