Swift: Error loading /Library/Audio/Plug-Ins/HAL/NRDAudioClient: no suitable image found
问题 I am trying to play a sound as follows: import AVFoundation let sound = URL(fileURLWithPath: Bundle.main.path(forResource: "audiofile", ofType: "wav")!) var audioPlayer = AVAudioPlayer() @IBAction func audio1(_ sender: Any) { do { audioPlayer = try AVAudioPlayer(contentsOf: sound) audioPlayer.play() } catch { // error } When running in the iOS simulator this results in the following: 2019-01-08 12:29:55.438490+0800 Test App[8096:118590] Error loading /Library/Audio/Plug-Ins/HAL/NRDAudioClient