Show ANSI color in Xcode4 debug console

Is there any way to do this? I do not want to distinguish my magazines in different colors.

+4
source share
1 answer

To enable ANSI colors in the Xcode console , install clone https://github.com/robbiehanson/XcodeColors and build. The build process will install the Xcode plugin in the appropriate directory.

To cancel the Xcode clone https://github.com/steakknife/unsign , run make, put the unsign command in the path. Then run the following:

cd /Applications/Xcode.app/Contents/MacOS sudo unsign Xcode sudo mv Xcode Xcode.signed sudo ln -sf Xcode.unsigned Xcode 

Please note that this is reversible. Just change the symbolic link. Now you need to update the UUID of the plugin to match the current version of Xcode :

 XCODEUUID=`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID` for f in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*; do defaults write "$f/Contents/Info" DVTPlugInCompatibilityUUIDs -array-add $XCODEUUID; done 

Now you can use ANSI colors in the Xcode console. It looks like this:

+2
source

All Articles