wopen 0.2

I’ve updated my wopen bash function to open the .xcodeproj file if no .xcworkspace is available.

Copy the alias from here https://gist.github.com/coryalder/5609996

Place in your .bash_profile or .bashrc file (~/.bash_profile).

Example usage:

cd projectdirectory
wopen

issues open projectdirectory.xcworkspace if that file exists, or open projectdirectory.xcodeproj if that file exists, and errors out nicely if neither do.

CocoaPods tip #0912: faster .xcworkspace opening

UPDATE: 0.2 available here http://objectivesea.tumblr.com/post/50874228125/wopen-0-2

My typical CocoaPods workflow:

  1. Switch to terminal
  2. cd to your project directory
  3. Edit Podfile
  4. type pod update
  5. Quickly Cmd-tab back to Xcode to close the project before CocoaPods rewrites it
  6. Type open .xcodeworkspace
  7. Resume working

The step that trips me up the most of all of these, is ironically step #6. xcw is a hard sequence of letters to type at the best of times.

Solution! wopen

Put this in your .bash_profile or .bashrc:

function wopen {
    open ${PWD##*/}.xcworkspace
} # open Xcode workspace

Now typing wopen will open the .xcworkspace file of the same name as the current directory.

Typical usage: pod update; wopen

0 notes

Thing #244 I don’t like about Xcode:

Because the structure of your project is abstracted from the on-disc project structure, I always end up with tidy projects and messy project directories.

0 notes

vectorvector:

Stickin’ it to the man by using a proportional font (Times New Roman) for programming.
You can download my Xcode colour theme here, if you like.
To install, place the file in ~/Library/Application Support/Xcode/Color Themes/

vectorvector:

Stickin’ it to the man by using a proportional font (Times New Roman) for programming.

You can download my Xcode colour theme here, if you like.

To install, place the file in ~/Library/Application Support/Xcode/Color Themes/