I installed the Scrumdinger tutorial app using the links at: https://developer.apple.com/tutorials/app-dev-training/getting-started-with-scrumdinger
The ding sound does not play on my iPhone, the relevant code is:
import Foundation
import AVFoundation
extension AVPlayer {
static let sharedDingPlayer: AVPlayer = {
guard let url = Bundle.main.url(forResource: "ding", withExtension: "wav") else { fatalError("Failed to find sound file.") }
return AVPlayer(url: url)
}()
}
player.seek(to: .zero)
player.play()
If I create a separate sample app with just this code it does play the sound. However the sample Scrumdinger app does not play the "ding" sound.