Search code examples
xcodebuilditerm2oh-my-zsh

How do I stop iTerm2 from running xcodebuild and hanging when I open a window?


Since this morning, on my iMac (macOS High Sierra Version 10.13.6) any time I open an iTerm2 window (with Oh My Zsh installed), I see this:

iTerm2 window running xcodebuild and stuck

It seems that it's trying to run xcodebuild and it's stuck. I never get a prompt, even after waiting a long time. I've tried pressing ctrl+C to end the process, and then I see this:

iTerm2 window after pressing cmd+C

I'm not purposely trying to do anything with Xcode. I just want to use the command line. I've been working for months without this problem, and it just started today. Any suggestion for how I can resolve this and use iTerm like normal?


Solution

  • I had the similar issue. This resolved the problem:

     # sudo xcodebuild -license accept