GPG signed Git with XCode
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.
Next related
First of Devember
Not a single actual line of code written today, but development environment setup had to take priority. The way to manage Cocoa dependencies seems to be Carthage, so lets use that for our first known dependency, namely a new framework that will hold all reusable parts of the map handling and navigation code. Carthage looks somewhat similar to bundler of Ruby fame, so that’s nice.
Previous related
XCode build number from git
Add this as a Run Script Phase at the end of Build Phases in your XCode project to increment your CFBundleVersion as {git commit count}.{uncommitted changes}-{gitrevid}.