But, we can configure in the following way.
HOW TO
- Download the shell script
- Config the path
- Execute the shell script
- Check
The script that empower Xcode syntax highlighting is distributed.
Download go4xcode.sh from here.
There is no need to download go.sclangspec, because it is contained in SDK of Google App Engine.
By default, it is here.
/Applications/google_appengine/goroot/misc/xcode/4/go.xclangspec
The script uses the environment variable $GOROOT.
Check whether it is configured correct path.
$ su $ echo $GOROOT
If displayed path to goroot, there is no problem.
If else, set the path to goroot.
If else, set the path to goroot.
$ export GOROOT=/Applications/google_appengine/goroot/
Let's execute the shell script.
$ sh go4xcode.sh Backing up plugindata file. Adding Go language specification entry. Duplicate Entry Was Skipped: Xcode.SourceCodeLanguage.Go Installing Go language specification file for Xcode. Run 'sudo rm -rf /var/folders/*' and restart Xcode to update change immediately. Syntax coloring must be manually selected from the Editor - Syntax Coloring menu in Xcode.
$ rm -rf /var/folders/*
it's complete.
No comments:
Post a Comment