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

Cocopod 1.1 doesn't output colors #6

Closed
world opened this issue Jun 15, 2016 · 4 comments
Closed

Cocopod 1.1 doesn't output colors #6

world opened this issue Jun 15, 2016 · 4 comments

Comments

@world
Copy link

world commented Jun 15, 2016

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

@onevcat
Copy link
Owner

onevcat commented Jun 16, 2016

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.

@world
Copy link
Author

world commented Jun 17, 2016

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?

@onevcat
Copy link
Owner

onevcat commented Jun 17, 2016

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.

@Maxatma
Copy link

Maxatma commented Aug 1, 2016

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

@onevcat onevcat closed this as completed Nov 14, 2016
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

3 participants