CocoaLumberjack: XcodeColors doesn't work
I follow the step to configured the xcode but the content in output did’t render with color but with messy code.
//Adds the logger to the console (similar to nslog)
[DDLog addLogger:[DDTTYLogger sharedInstance]];
// And we also enable colors
[[DDTTYLogger sharedInstance] setColorsEnabled:YES];
DDLogWarn(@"waring");
DDLogError(@"error");
[38;5;130m2012-08-03 22:22:50:735[10875:c07] waring
[0m[38;5;124m2012-08-03 22:22:50:735[10875:c07] error
[0m
[38;5;130m and [0m[38;5;124m are the messy code.
I also test with xcodecolor test project and it works fine.
Thanks.
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 30 (9 by maintainers)
You need to go to “Edit Scheme…” Select the “Run” -> “Arguments” Under “Environment Variables” Click the “+” button. In the “Name” column enter: “XcodeColors” In the “Value” column enter: “YES”
@MadBurea: if you’re using Xcode 8+, XcodeColors is not supported any more: cf. https://github.com/robbiehanson/XcodeColors’s README.