MacOS – xcodebuild firing after every terminal command

macosterminal

After every terminal command, the prompt becomes unresponsive for 2-3 seconds. During this time xcodebuild seems to be running:

xcodebuild is here

Where would this hook be that's causing the xcodebuild to be fired? I couldn't find anything in my .zshrc.

Best Answer

The problem is that the Xcode license hasn't been accepted so when running git it tries to prompt you for accepting the license. For me running

sudo xcodebuild -license accept

fixed the issue