I followed the instructions in the book exactly to make my program. I typed in the code, and made no mistakes, but when I select Run (the play button) the program runs, and doesn’t stop running. Even if I stop it manually, the debug log never has any info in it. I’m using XCode 4.3.2 on OS X 10.7.4
If I execute the program from Terminal, it runs properly, displays the printf data, and exits.
Here is a video of what is happening: youtu.be/vV8O1hoz7WA
Edit: I found the issue. Apparently the loopback for localhost was missing in my /etc/hosts file. That fixed it.