What are the conditions under which the play method of AVAudioPlayer returns false?

My application uses AVAudioPlayer to play sound. But lately, when I play a sound, it returns a failure. Restarting the application will fix it temporarily, but it will immediately return false. I read the docs but couldn't figure out the exact reason for returning false.

https://developer.apple.com/documentation/avfaudio/avaudioplayer/1387388-play

Can anyone please tell me what causes false to be returned?

At least condition is if the Media Services are reset.

Documentation for handling it is here: https://developer.apple.com/documentation/avfaudio/avaudiosession/1616540-mediaserviceswereresetnotificati

What are the conditions under which the play method of AVAudioPlayer returns false?
 
 
Q