Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Xcode 4.5 #67

Closed
Leadro opened this Issue · 12 comments

2 participants

@Leadro

Hello,

I would like to use your lib for coloring my debug output.
With folowing steps on the your "Getting Started" quide I try add CocoaLumberjack to my project, But I have next problems:
I don't see any log in the console with next code:

DDLogInfo(@"Broken sprocket detected!");
DDLogVerbose(@"User selected file:%@ withSize:%u", @"asdasd", 222);

in the - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions methods I add

DDLog addLogger:[DDASLLogger sharedInstance]];
[DDLog addLogger:[DDTTYLogger sharedInstance]];
[[DDTTYLogger sharedInstance] setColorsEnabled:YES];

but no result. ((
Can you help me with this plroblem

P.S. My Xcode Version 4.5.1 (4G1004). iOS SDK 6.0. Mac os version 10.8.2(12C60)

thank you
WBR
Maxim

@enovav

This documentation on XcodeColors fixed my problem and might help you. If you don't get any output whatsoever, make sure you set ddLogLevel, for example with static const int ddLogLevel = LOG_LEVEL_VERBOSE;

@Leadro

Hello.
thank you for your reply,
in the my code I added the static const int ddLogLevel = LOG_LEVEL_VERBOSE;
Also one additional information:
on the my work PC installed a Mac OS version 10.7.5 and every thing work fine, and my messages in the console are colored.
maybe it's help for finding solution

@enovav

Do you now see any messages in the Xcode console?

@Leadro

In the work I was configure my project and all colors show fine(on Mac OS 10.7.5). Then I copy work project to my home machine(Mac OS 10.8.2) and run this projec. I see all output messages in the console by they all with default color.

@enovav
  1. Does the test project of XcodeColors work?
  2. Have you configured the environment variable XcodeColors to YES in the Build Scheme editor?

If the answer to both of these questions is yes, I'm sorry but I can't help you.

@Leadro
  1. Work, but all output text in console has a default color
  2. Yes, I'm added the new enviroment variable to my build scheme
@enovav

OK, this probably means XcodeColors isn't installed. You can install it using the guide for Xcode 4 available on the XcodeColors project page.

@Leadro

OK, I will try it.
Also I have one question about instalation XcodeColor:
Where I need copy the "XcodeColors.xcplugin" folder? I can not find Developer folder on the next path
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin

@enovav

This might not already be created by default, so either create all the intermediate folders or run mkdir -p ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ in the Terminal. Once copied, restart Xcode and it hopefully should work.

@enovav

Did this solve your problem?

@Leadro

YES!!! Resolved!!!
Thank you very much for helping

@enovav

Excellent. Would you mind closing the issue so it's marked as resolved? Glad to help.

@Leadro Leadro closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.