Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminal window inside Xcode?

Tags:

xcode

ios

Does Xcode have an area I can open up a terminal shell session inside Xcode? Android Studio has a window you can open up at the bottom by the console logcat window that will start a terminal session. Does Xcode have anything like this?

like image 812
Adam Johns Avatar asked Feb 24 '14 20:02

Adam Johns


People also ask

Does Xcode have an integrated terminal?

Xcode is one of the few IDE's I know that does not have a "Open terminal" button. But you can leverage so called "Xcode Behaviors" to quickly launch your terminal. Xcode Behaviors allows you to execute shell scripts from Xcode with a keyboard shortcut.

How do I show the console in Xcode?

Here is small tip for Xcode developers. To show/hide the Console click the icon Show/Hide the console in the lower right corner. It's the last icon on the lower right side of the panel.

How do you access the terminal window on a Mac?

On your Mac, do one of the following: Click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal. In the Finder , open the /Applications/Utilities folder, then double-click Terminal.

What is terminal in Swift?

A Logical Terminal is the entity through which users send and receive FIN messages.


1 Answers

  1. Create executable shell script with the following contents and save it anywhere

    #!/bin/bash open -a Terminal "`pwd`" 
    • Add execute permissions to your script: $ chmod +x <YourShellScript>
  2. In the Xcode menu bar, Go to Xcode -> Preferences -> Behaviors.
  3. Add a Custom behavior
  4. Name it "Open Terminal", or whatever.
  5. (Optional) Configure a hotkey for the behavior by tapping on the
  6. (Optional) Input hotkey combination
  7. Checkmark Run, select you script from step 1.
  8. Use it within Xcode.

Image with numbers corresponding to steps

like image 141
Aleksei Minaev Avatar answered Sep 26 '22 06:09

Aleksei Minaev