For work projects I’ve been working on lately, we have adopted a strict gpg signed commits and tags only policy, so I thought I’d carry that good intention over to private projects as well. Except it turns out that the execution environment in which XCode runs git does not play well with gnupg.

gpg: cannot open `/dev/tty': Device not configured

Searching for solutions got me nothing but “not supported”. So sad. Can’t be.

% git config --global gpg.program gpg-batch

Ta-da! You’re welcome.