QRBar is a small QR code generator for the macOS menu bar. The URL opens pre-populated with the clipboard content, but you can also type or paste a URL, and the QR code appears right away. You can then copy it, save it as PNG or SVG, or drag it straight into another app.
Everything happens locally: codes are generated on the device with Core Image, and the app has no network access, no accounts and no dependencies.
App design
QRBar is a MenuBarExtra app built with SwiftUI. It has no Dock icon (LSUIElement), so it stays out of the way until you need it.
The project is split in two parts:
- QRBarCore: a UI-free framework that generates the QR code (using
CIQRCodeGenerator) and writes the PNG and SVG output. It has its own unit tests. - QRBar: the SwiftUI app itself, which embeds QRBarCore.
Challenges
With Claude Code, going from idea to prototype took about 2 hours, including several iterations on the UI elements, the menu, and the icon.
The hard part was everything after: putting in place a versioning and tagging strategy using agvtool, building for release, and learning how to sign and notorize a DMG. Even with Claude Code help and tutoring, it took 1 full day to put everything in place.
I was surprised by how manual Xcode’s release workflow still is. Versioning goes through agvtool, and notarization needs separate credentials and tooling, so a lot of the work is gluing command-line steps together.
Release process
Distributing a macOS app outside the App Store has several steps, so I scripted most of them:
- The marketing version (
X.Y.Z) is set at the start of a release, and the build number is bumped withagvtoolbefore every distributed build. It never resets. scripts/make-dmg.shtakes the exported, notarized app and produces a signed, notarized and stapled DMG, with a drag-to-Applications window (usingcreate-dmgandnotarytool).- The shipped commit is tagged
vX.Y.Z, and a draft GitHub release is created bygh releasefrom the tag and the DMG with the GitHub CLI.
Tech Stack
- Swift and SwiftUI (
MenuBarExtra) - Core Image (
CIQRCodeGenerator) - macOS 14+, built with Xcode
- XCTest for the QRBarCore unit tests
agvtool,create-dmgandnotarytoolfor packaging and notarization- GitHub CLI for releases
License
QRBar is open source, under the MIT license.