Terminal window inside Xcode?
IosXcodeIos 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
-
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>
- In the Xcode menu bar, Go to Xcode -> Preferences -> Behaviors.
- Add a Custom behavior
- Name it "Open Terminal", or whatever.
- (Optional) Configure a hotkey for the behavior by tapping on the ⌘
- (Optional) Input hotkey combination
- Checkmark Run, select you script from step 1.
- 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.