I would also like to add an Objective-C answer:
[[AVAudioSession sharedInstance] setCategory:@"AVAudioSessionCategoryAmbient" error:nil];
[[AVAudioSession sharedInstance]setActive:true error:nil];
I can confirm that this also worked in the Sprite Kit by using [SKAction playSoundFileNamed:] for my sound effects.
source
share