Fixing xcode project & install script. And adding support for full color spectrum.#1
Open
robbiehanson wants to merge 114 commits intoDeepIT:masterfrom
Open
Fixing xcode project & install script. And adding support for full color spectrum.#1robbiehanson wants to merge 114 commits intoDeepIT:masterfrom
robbiehanson wants to merge 114 commits intoDeepIT:masterfrom
Conversation
…sed (for foreground and background colors).
…rking. But XCODE_COLORS_ESCAPE_MAC seems to work everywhere. This actually simplifies things!)
Support to XCode5
…et. Also adding common instructions via NSLog. This should make it easier to build and install.
Corrects minor typo: it's --> its
Added support for Xcode 7.1 beta (7B60)
* commit 'c5b2b3599f7f2f7d1561d5c9f3543a080a8abb51': Corrects minor typo: it's --> its
Updated the getenv(XCODE_COLORS) to getenv("XcodeColors")
Also some minor spacing updates
Added support for Xcode 7.1 Build version 7B91b
Update println to print for Swift 2.0
Fix "use of undeclared identifier" error
* commit '0ac37f4e3f1e796ad5375a7833444a658169c979': Updating bundle identifier. Adding mention of Xcode 7 to readme. Performing recommended project changes for Xcode 7. Update println to print for Swift 2.0 Fix "use of undeclared identifier" error Added support for Xcode 7.1 Build version 7B91b
Converte binary plist file back to XML format
Update Readme
XCode Version 7.2 (7C68) release
CleanroomLogger is to Swift as CocoaLumberjack is to Objective-C, so naturally we added XcodeColors support! This update to the README shows how XcodeColors can be used from the pure-Swift console logging API.
XCode 7.3 (7D175) added
Add check for Xcode-beta
Add reference to CleanroomLogger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Great work! Really cool project!
After forking it, I fixed the Xcode project so it would compile with Xcode 4. Then I fixed the install script (Xcode 4 puts the build directory in a different place).
After that I started using it and thought it was great. But then I started wondering... why limit the project to only 16 colors?
Digging around in the source code I discovered that you're passing colors into NSTextStorage. So I realized that, conceptually, the project could support virtually any color. Just so long as it could parse the color information coming in.
Now I realize that the original project was meant to be compatible with the ANSI escape codes. The basic 16 colors. However the Terminal.app in Lion uses xterm-256color. I debated updating the project to support the 256 colors, but I still felt like this limited the potential of the project.
Ultimately I felt like the best solution would be to allow the user to specify any color they want using RGB values. If they run the application within Xcode, then XcodeColors will honor the color exactly as requested. However, if the user runs the application from within the terminal, then the application should automatically map the requested color to the closest available color the shell supports.
But obviously XcodeColors can't help outside of Xcode. Thus the above solution requires code outside of the actual XcodeColors plugin.
What I've done is update XcodeColors to support the entire color spectrum. It uses the same escape sequence as before, but then parses RGB values afterwards (including a foreground vs background color indicator). It works like a charm!
In addition, I've added native support for XcodeColors to the CocoaLumberjack framework:
https://github.com/robbiehanson/CocoaLumberjack
I wrote a blog post about it too:
http://deusty.blogspot.com/2012/05/does-your-xcode-do-this.html
Additionally, the code within Lumberjack automatically provides the color mapping as outlined above. That is, if you run your application from within a terminal, and your terminal supports color (xterm-color or xterm-256color) like the Terminal.app in Lion, then Lumberjack automatically maps your color customizations to the closest available color supported by the shell.