iOS Simulator does not play sound
On XCode 6, everything works well on device, but on simulator, sound is not played. There is my swift 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() There is the log : ERROR: 98: Error '