This is how I play the sound system. As simple as possible. Just find the name of the sound you are trying to play.
Remember to import #import <AVFoundation/AVFoundation.h>
and add AVFoundation.frameworkgoals to the build phases.
AVAudioPlayer *audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle bundleWithIdentifier:@"com.apple.UIKit"] pathForResource:@"Tock" ofType:@"aiff"]] error:NULL];
[audioPlayer play];
source
share