Here’s this mornings little productivity optimisation.. For ages I’ve had xc
bound to open *.xcodeproj
but that only works within the root directory of a project.. so heres a simple ruby script to open the Xcode project, either within the current working directory or within any of it’s parent directories. I have it aliased to ‘xc’ for easy triggering. Script updated to open a .xcworkspace if there is one otherwise falling back to the .xcodeproj.
Updated: 25/02/15 with the new code to favour workspaces