OCUnit, NSLog, and Xcode 3.1

I used OCUnit (the default installation shipped with Xcode) in Xcode 3.0. I was happy that I was able to run my tests and see the results in the "Assembly Results" window, as well as any NSLog () messages that I output.

However, with Xcode 3.1, tests pass fine, but I suddenly lose the output of NSLog (). Does anyone know where he went?

+6
xcode nslog ocunit
source share
3 answers

Just by studying this material myself and had to poke to answer this very question (Xcode 3.1.2).

Go to the "Assembly Results" window after starting. It may not open automatically, depending on the configuration. The Build / Build Results menu will open if necessary.

In the middle area between the two panels, you will see 4 buttons on the left. The third icon is only 3-4 horizontal lines. Click to switch the transcript of the assembly. This shows all the assembly steps and the output of NSLog () from the run.

+7
source share

While this is inconvenient, I found NSLog () messages in OSX Console.app.

Applications> Utilities> Console.app I filtered otest to see the result.

I could not get any of the above methods to work.

+3
source share

(on the menu bar) Run β†’ Console (Shift-Apple-R)

-2
source share

All Articles