Just ran in the same problem while writing a small shadowmapping tutorial with GLUT:
http://fabiensanglard.net/shadowmapping/index.php
Very sad that 7 years later, this issue is still here :( ! I guess it's not even worth it to complain to apple.
From within xcode, application was running...