So I implemented a sound file while a swipe gesture is made, and it always crashes when it should play the sound. There is no Debug Output. Since I am using the Yosemite Beta, I thought it is because of Xcode, showing me only the Thread 6 1.2 Breakpoint. So I downloaded the Xcode 6 Beta, and the Beta is showing me the Thread 1 1.1 Breakpoint.
My Code:
- (void)handleSwipeUp:(UISwipeGestureRecognizer *)sender
{
if(PlayerBlockContact){
[Human.physicsBody applyImpulse:CGVectorMake(0, 65)];
NoSlide = true;
[self runAction:[SKAction playSoundFileNamed:@"JumpSound.mp3" waitForCompletion:NO]];
[self performSelector:@selector(MenschAnimation) withObject:nil ];
NSLog(@"Jump");
}
}
A breakpoint is not a crash. I imagine you've added an exception breakpoint. If so, make sure it only breaks on Objective-C exceptions.
It's rather common for the underlying (C++) AVAudioPlayer and OpenAL to throw all kinds of exceptions, halting program execution if the exception breakpoint also catches C++ exceptions.