title: iOS Simulator does not play sound
body: <p>On XCode 6, everything works well on device, but on simulator, sound is not played.</p>
  
  <p>There is my swift code : </p>
  
  <pre><code>var url =  NSURL(string: "http://my.url.com/sound.mp3")
  var data = NSData(contentsOfURL: url!)
  // Removed deprecated use of AVAudioSessionDelegate protocol
  AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback, error: nil)
  AVAudioSession.sharedInstance().setActive(true, error: nil)
  self.player = AVAudioPlayer(data: data, error: nil)
  self.player.prepareToPlay()
  self.player.delegate = self
  self.player.volume = 1
  self.player.play()
  </code></pre>
  
  <p>There is the log :</p>
  
  <pre><code>ERROR:     98: Error '!obj' trying to fetch default input device's sample rate
  
  ERROR:     100: Error getting audio input device sample rate: '!obj'
  
  WARNING:   230: The input device is 0x0; '(null)'
  
  WARNING:   234: The output device is 0x26; 'AppleHDAEngineOutputDP:3,0,1,1:0:{2D4C-092D-00000000}'
  
  ERROR:     400: error '!obj'
  
  ERROR:     113: * * * NULL AQIONode object
  
  ERROR:     180: EXCEPTION thrown ('!dev'): -
  
  ERROR:     703: Can't make UISound Renderer
  
  ERROR:     &gt;aqsrv&gt; 70: Exception caught in (null) - error -1
  
  ERROR:     180: EXCEPTION thrown ('!dev'): -
  
  ERROR:     &gt;aqsrv&gt; 70: Exception caught in (null) - error -1
  </code></pre>