I am trying to play an audio in apple watch simulator but it keeps giving this error.
The operation couldn’t be completed. (OSStatus error 2003334207.)
Is it possible to play an audio with simulator? Audio url is fine. Here is my code.
self.player = try AVAudioPlayer(contentsOf: url as URL)
player?.prepareToPlay()
player?.volume = 10.0
player?.play()