Home > C/C++ > Quieten XCode’s output to the console

Quieten XCode’s output to the console

August 6th, 2009

Hi,

During some iPhone dev i noticed that the console on my macbook had many entries like:

Xcode(19838,0xb0103000) malloc: free_garbage: garbage ptr = 0×319a380, has non-zero refcount = 1
Xcode(19838,0xb0103000) malloc: free_garbage: garbage ptr = 0×31bf6e0, has non-zero refcount = 1
Xcode(19838,0xb0103000) malloc: free_garbage: garbage ptr = 0×3263da0, has non-zero refcount = 1
Xcode(19838,0xb0103000) malloc: free_garbage: garbage ptr = 0×3274eb0, has non-zero refcount = 1
Xcode(19838,0xb0103000) malloc: free_garbage: garbage ptr = 0×319a380, has non-zero refcount = 1
Xcode(19838,0xb0103000) malloc: free_garbage: garbage ptr = 0×31bf6e0, has non-zero refcount = 1

These messages I found out are not actually anything to do with my program, I thought I was doing something wrong and not freeing up resources. It is actually the internal workings of XCode which is automatically freeing up resources. Knowing this, I decided to turn off these annoying console outputs and found this XCode project which basically gobbles up output from XCode in the same mould as above.

Just compile the project and it will install the QuietXCode plugin to ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. Restart Xcode and fire up the console and you’ll see an inital output of:

06/08/2009 19:34:32 Xcode[5147] <QuietXcode> loaded successfully

You should no longer see the annoying output!

admin C/C++

  1. No comments yet.
  1. No trackbacks yet.

Anti-Spam Protection by WP-SpamFree