DEV Community

Coder
Coder

Posted on โ€ข Originally published at itscoderslife.wordpress.com on

Xcode shortcut to open Derived Data folder

Saving time with shortcuts like opening terminal from Xcode, I created few more shortcuts to help my fellow Xcode users. Another one here is Opening Derived Data folder to access you project binaries or to do any thing else.

Either you should know the path to Derived data folder and go to Finder Cmd + Shift + G and then enter the path. Or you have to go to Xcode preferences -> Location Tab click on arrow in front of Derived Data path. Both these are cumbersome.

What if I help you create a SHORTCUT ?

This is how you do it. Itโ€™s a one time setup. Just like you did it for Opening terminal

  1. Create a 2 line shell script and give the file execute permission.
  2. Go to Xcode Preferences.
  3. Add a Behavior in Xcode. Name it and give a shortcut key.
  4. On the right side details pane check the Run option.
  5. From the adjacent drop-down menu choose the script you just saved in step 1.

Script:

#!/bin/bash
open ~/Library/Developer/Xcode/DerivedData

Command to give execute permission:

chmod +x /path/to/the/open_derived_data.sh

If you are lazy like me hereโ€™s the gist, download and use it: https://gist.github.com/itscoderslife/a3a5ca7e973bba575ba2d07b04338c80

Hope this is helpful.

Other shortcuts

Open in terminal

Open project folder

Happy coding ๐Ÿ˜‰

.gist table { margin-bottom: 0; }



Damodar Shenoy's DEV Profile

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay