XCode installs gcc 4.2 which has some bugs that prevent me from running skeinforge. This is how I installed gcc 4.7.
First install MacPorts. Then use the port command to install and activate the new gcc.
sudo port install gcc47
sudo port select gcc mp-gcc47
To make the previous gcc active, use
sudo port select gcc none