You try to build a scheme which is not marked as shared. Usually, it hangs right after you start any
xcodebuild command (for example,
xcodebuild -list or
xcodebuild .. archive).
Make sure that you marked the scheme as shared, and that you actually committed & pushed it into your repository.