FileManager y urlsForDirectory Error en Swift 3 Xcode 8

Acabo de ir a Xcode 8 beta 4 desde la versión beta 3 pero, por cualquier razón, estoy recibiendo este error que funcionó sin errores o se emitió hasta la versión beta 4. aquí está el error " Value of type 'FileManager' has no member 'urlsForDirectory' "

mi código:

  func setupRecorder(){ let audioSession:AVAudioSession = AVAudioSession.shanetworkingInstance() //ask for permission if (audioSession.responds(to: #selector(AVAudioSession.requestRecordPermission(_:)))) { AVAudioSession.shanetworkingInstance().requestRecordPermission({(granted: Bool)-> 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"); } } }) } } 

PERO la única parte es esta línea:

  let urls = fileManager.urlsForDirectory(.documentDirectory, inDomains: .userDomainMask) 

" 'Value of type 'FileManager' has no member 'urlsForDirectory' "

Solo tiene que cambiarlo a urls (para 🙂 como sigue:

 let documentDirectory = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first!