FileManager and urlsForDirectory Error in Swift 3 Xcode 8
<p>I just went to Xcode 8 beta 4 from beta 3 but for what ever reason I am getting this error that has worked with no errors or issued until beta 4. here is the error" <code>Value of type 'FileManager' has no member 'urlsForDirectory'</code> "</p>

<p>my code:</p>

<pre><code> func setupRecorder(){

        let audioSession:AVAudioSession = AVAudioSession.sharedInstance()

        //ask for permission
        if (audioSession.responds(to: #selector(AVAudioSession.requestRecordPermission(_:)))) {
            AVAudioSession.sharedInstance().requestRecordPermission({(granted: Bool)-&gt; Void in
                if granted {
                    print("Permission Granted\n")

                    //set category and activate recorder session
                    do {
                        //----
                        let fileManager = FileManager.default
                        let urls = fileManager.urlsForDirectory(.documentDirectory, inDomains: .userDomainMask)
                        //----
                        let documentDirectory = urls[0] as URL
                        let soundURL = try! documentDirectory.appendingPathComponent("sound.m4a")

                        try audioSession.setCategory(AVAudioSessionCategoryPlayAndRecord)

                        try self.soundRecorder = AVAudioRecorder(url: soundURL, settings: self.recordSettings)

                       let micInput = try AVAudioRecorder(url
                        : soundURL, settings: self.recordSettings)


                        self.soundRecorder.prepareToRecord()
                        self.soundRecorder.updateMeters()



                    } catch {

                        print("Error Recording");

                    }

                }
            })
        }

    }
</code></pre>

<p>BUT the only part is this line:</p>

<pre><code>                let urls = fileManager.urlsForDirectory(.documentDirectory, inDomains: .userDomainMask)
</code></pre>

<p>" <code>'Value of type 'FileManager' has no member 'urlsForDirectory'</code>"</p>