How do I stop iTerm2 from running xcodebuild and hanging when I open a window? December 9, 2023 by Tarik I had the similar issue. This resolved the problem: # sudo xcodebuild -license accept