Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 7.2 Issue #72

Open
RZahr opened this issue Dec 11, 2015 · 14 comments
Open

Xcode 7.2 Issue #72

RZahr opened this issue Dec 11, 2015 · 14 comments

Comments

@RZahr
Copy link

RZahr commented Dec 11, 2015

After Updating to Xcode 7.2, this is not working anymore

@paradoxally
Copy link

Same here, doesn't seem to work with CocoaLumberjack with Xcode 7.2.

I used:

DDLog.addLogger(DDTTYLogger.sharedInstance())
DDTTYLogger.sharedInstance().colorsEnabled = true

And then doing DDLogWarn("Warning") does not show up in orange. I tried with error, no red either.

@kwade101
Copy link

Whenever there is a Xcode version change, you'll need to add the Xcode version's new UUID into the list of DVTPlugInCompatibilityUUID entries in the XcodeColors info.plist file. I had the same issue and this resolved it.

For 7.2, the UUID is F41BD31E-2683-44B8-AE7F-5F09E919790E.

@paradoxally
Copy link

@kwade101 No, that's not it. The latest version of this plugin already had the 7.2 UUID in it and Xcode loads it.

@kwade101
Copy link

@paradoxally Ah, ok. My apologies. All I saw was the mention of an update to Xcode, not to the plugin.

@robbiehanson
Copy link
Owner

Have you re-installed XcodeColors ?

  • Checkout the latest via git
  • Build-and-go on project
  • Restart Xcode (full quit, not just closing project)
  • Build-and-go again (should see colors in console)

Another thing that may help (I've heard rumors of it helping)

Try installing plugin via Alcatraz:
http://alcatraz.io/

Let me know what you find. I'd like to write up a wikipage for troubleshooting these issues.

@paradoxally
Copy link

@robbiehanson Yes, I tried reinstalling and I'm using Alcatraz. The bundle is loaded by Xcode, but it simply won't show colors using CocoaLumberjack.

@robbiehanson
Copy link
Owner

If you run the Xcode project within the XcodeColors repository, does it work then ?

@paradoxally
Copy link

@robbiehanson Yes, the test project works.

I found the fix from here though. It turns out that an environment variable named XcodeColors with value YES must be added to the current scheme (mine is Run > Debug, but you can set it for any of them).

After adding that env. variable, it now logs with colors using CocoaLumberjack.

@RZahr
Copy link
Author

RZahr commented Dec 14, 2015

installing via http://alcatraz.io/ worked for me:)

@Skornos
Copy link

Skornos commented Jan 6, 2016

Had the same problem and it was solved as @paradoxally suggested

@mamaral
Copy link

mamaral commented Jan 6, 2016

@robbiehanson's solution worked for me. Thanks!

@gblazex
Copy link

gblazex commented Feb 8, 2016

Installing from Alcatraz, but still needed the flag mentioned by @paradoxally

@zetasq
Copy link

zetasq commented Mar 13, 2016

+1, hope this issue could be fixed because it's so convenient to install from http://alcatraz.io/

@rsattar
Copy link

rsattar commented Jun 10, 2016

The issue with requiring the XcodeColors environment variable is that it's going to be set to YES even on people's computers that don't have XcodeColors installed, and then you'll see the inserted color characters in your logs. So it seems that for some reason in Xcode 7.2+ (7.3.1 in my case), the XcodeColors plugin isn't able to set the XcodeColors=YES environment variable so that, we can make a runtime decision on whether to enable colors or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants