Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

No log output in Xcode

I am doing the How to develop simple iPhone app deep dive and I have finished the What is an IBAction? video and ran the project. When I tap the button, the NSLog that is supposed to output doesn't work and nothing AT ALL shows up in the console. printf doesn't work either and when I download the project, nothing outputs either.

I am continuing with the deep dive as everything else works.

Thanks

4 Answers

If you haven't already I would delete the IBAction connection and code for it and re-connect it. Maybe you misconfigured something the first time.

you need to be sure you have the debug area shown and the console view is not hidden. Press command + shift + c and it should unhide both. The console is in the bottom right of the xcode window. You may have the variables view shown and the console view hidden, which might explain why you arent seeing anything.

Thanks for the response but showing the console doesn't seem to work. Could it be something to do with the iOS project as doing the objective-c basics the console worked fine?

Thanks, reconnecting the IBAction worked. Strange but oh well. It works now.