Terminal window inside Xcode?

IosXcode

Ios Problem Overview


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?

Ios Solutions


Solution 1 - Ios

  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>
  1. In the Xcode menu bar, Go to Xcode -> Preferences -> Behaviors.
  2. Add a Custom behavior
  3. Name it "Open Terminal", or whatever.
  4. (Optional) Configure a hotkey for the behavior by tapping on the
  5. (Optional) Input hotkey combination
  6. Checkmark Run, select you script from step 1.
  7. Use it within Xcode.
Image with numbers corresponding to steps

Solution 2 - Ios

Unfortunately there is no such a thing in Xcode. We have to fall back to external Terminal window.

If you really want to do it, you can add a build phase and run script that opens the Terminal - but that might not be what you are looking for.

enter image description here

Solution 3 - Ios

Relatedly, now in Xcode 8, you can have your program run automatically in Terminal rather than using the Xcode Console. Just go to Edit Scheme > Run > Options and set Console at the bottom to Terminal.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAdam JohnsView Question on Stackoverflow
Solution 1 - IosAleksei MinaevView Answer on Stackoverflow
Solution 2 - IosRafa de KingView Answer on Stackoverflow
Solution 3 - IosmackworthView Answer on Stackoverflow