Giter Site home page Giter Site logo

Xcode 7.2 Issue about xcodecolors HOT 14 OPEN

robbiehanson avatar robbiehanson commented on August 23, 2024
Xcode 7.2 Issue

from xcodecolors.

Comments (14)

paradoxally avatar paradoxally commented on August 23, 2024 1

@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.

from xcodecolors.

paradoxally avatar paradoxally commented on August 23, 2024

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.

from xcodecolors.

kwade101 avatar kwade101 commented on August 23, 2024

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.

from xcodecolors.

paradoxally avatar paradoxally commented on August 23, 2024

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

from xcodecolors.

kwade101 avatar kwade101 commented on August 23, 2024

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

from xcodecolors.

robbiehanson avatar robbiehanson commented on August 23, 2024

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.

from xcodecolors.

paradoxally avatar paradoxally commented on August 23, 2024

@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.

from xcodecolors.

robbiehanson avatar robbiehanson commented on August 23, 2024

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

from xcodecolors.

RZahr avatar RZahr commented on August 23, 2024

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

from xcodecolors.

Skornos avatar Skornos commented on August 23, 2024

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

from xcodecolors.

mamaral avatar mamaral commented on August 23, 2024

@robbiehanson's solution worked for me. Thanks!

from xcodecolors.

gblazex avatar gblazex commented on August 23, 2024

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

from xcodecolors.

zetasq avatar zetasq commented on August 23, 2024

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

from xcodecolors.

rsattar avatar rsattar commented on August 23, 2024

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.

from xcodecolors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.