onevcat / Rainbow

Delightful console output for Swift developers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cocopod 1.1 doesn't output colors

world opened this issue · comments

commented

Using Xcode 7.3 cocopods. I added Rainbow in the Podfile per your README. I also remembered to import RaindobowSwift (vs Rainbow). Now, when I try to use it, type-ahead shows me the colors so I know the class is being read. However, no text comes out colored. (ie print("hello myself".red) just prints "hello myself" in the normal console color. I feel like xcode is somehow overriding the coloring maybe.

Ideas?

PS I am in a bridged obj-c/swift project if that's a clue. However, I am only trying this from the Swift side without luck...

Did you try to output the string into a console (like Terminal or iTerm) or just use it inside the Xcode?

If you are using it in Xcode, you may need an Xcode plugin to enable the color rendering inside Xcode's console panel. You could find more in the first paragraph and the "Question" section in the read me file.

commented

Thank you for your help thus far:

  1. I am only using it inside Xcode. No 3rd party console.
  2. I am not using XCodeColors plugin, so why do I need the environment variable?

The console of Xcode does not support colorize the log by default, so you need a third party plugin (XCodeColors) to render colorful output in Xcode.

It just doesn't work, idk problem in pod or in XcodeColor plugin. Xcode Version 7.3.1, no 3rd party consoles.