This is probably a really simple and stupid question, but when I try to "Build and Run" an OpenGL program on XCode, it seems to debug it and open the window for a split second and then close. There aren't any compilation errors and it finishes saying that the debugging ended normally. I even tried changing the active configuration to release, but that didn't change anything. Is there something really obvious that I'm missing when I try to run a program? Sorry, I'm new at XCode.