Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OCUnit, NSLog, and XCode 3.1

I'd been using OCUnit (the default installation that comes with XCode) in XCode 3.0. I've been happy being able to run my tests and see the results in the Build Results window, as well as any NSLog() messages I output.

However, with XCode 3.1 the tests run fine, but I suddenly lose my NSLog() output. Anybody know where it went?

like image 206
sehugg Avatar asked Jul 01 '09 18:07

sehugg


1 Answers

Just learning this stuff myself and had to poke around to answer that very question (XCode 3.1.2).

Go to the Build Results window after running. It may not open automatically, depending on configuration. Build / Build Results menu option will open it if needed.

In the middle area between the two panes, you'll see 4 buttons on the left. The 3rd icon is just 3-4 horizontal lines. Click that to toggle the build transcript. That shows all build steps and NSLog() output from the run.

like image 146
John M Avatar answered Sep 23 '22 02:09

John M