I have been looking on this site and across google for about a week now trying to solve a bug in my app. It dosent look like memory management is the issue and breakpoints/instruments with zombies dosent return anything. All I have been able to figure out is that the issue stems from this block of code. When the app is run under certain circumstances it returns EXC_BAD_ACCESS on my main.m. I think this is the issue but thanks in advance for just looking over it!
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
if (!gameOver && gameStarted) {
[lines runAction:[SKAction removeFromParent]];
dotDrawn = NO;
UITouch* touch = [touches anyObject];
CGPoint positionInScene = [touch locationInNode:self];
pos2x = positionInScene.x;
pos2y = positionInScene.y;
lines = [SKShapeNode node];
CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path, NULL, pos1x, pos1y);
CGPathAddLineToPoint(path, NULL, pos2x, pos2y);
lines.path = path;
lines.strokeColor = [UIColor grayColor];
[lines setLineWidth:3];
[self addChild:lines];
}
}