DEV Community

Open Terminal from Xcode

Coder on April 21, 2018

I love Xcode as an IDE for macOS and iOS development. But it has its own set of limitations. One feature I miss a lot is Opening a Terminal window ...
Collapse
 
kisyov21 profile image
Ivaylo Kisyov • Edited

Thank you, I have managed to open the terminal but with a small change in the script. Single quotes are not visible in the script posted above. That is why I am attaching a screenshot of the script.

thepracticaldev.s3.amazonaws.com/i...

Collapse
 
itscoderslife profile image
Coder

Yes. Thanks for the comment.

Collapse
 
hvsw profile image
Henrique Valcanaia

Useful for me: to make it open in a new tab if already have a terminal instance running you can go to Dock preferences and set Prefer tabs when opening documents to Always.

Collapse
 
itscoderslife profile image
Coder • Edited

Awesome 👏
Thanks for the hack 👍

Collapse
 
kraci profile image
Jakub Kracina

Nice! but the script must be -> open -a Terminal "pwd"

Collapse
 
tqos profile image
Bohdan Sasko

Thank you :) It's very useful article!

Collapse
 
acsusanto profile image
Alexander Susanto

Its not working. It is showing an error.
Failed to launch script /Users/susanto/Desktop/open_terminal.sh: The operation couldn’t be completed. No such file or directory

Collapse
 
itscoderslife profile image
Coder

Also make sure the script is copied and placed inside a file open_terminal.sh and place it in the "/Users/susanto/Desktop/" folder of your machine.

Collapse
 
itscoderslife profile image
Coder

Hi Alexander

Please check the path to the script file.

You can also refer to the video here youtu.be/MMeu3xeXZxM