What can this USB-C cable actually do?
A small macOS menu bar app that tells you, in plain English, what each USB-C cable plugged into your Mac can actually do, and why your Mac might be charging slowly.
USB-C hides a lot under one connector. Anything from a USB 2.0 charge-only cable to a 240W / 40 Gbps Thunderbolt 4 cable, all looking identical in your drawer. macOS already exposes the relevant info via IOKit; WhatCable surfaces it as a friendly menu bar popover.
Per port, in plain English:
Right-click the menu bar icon for Refresh, a Keep window open toggle (handy for screenshots and demos), About, and Quit.
Download the latest WhatCable.zip from the Releases page, unzip, and drag WhatCable.app to /Applications.
The app is universal (Apple silicon + Intel), signed with a Developer ID, and notarised by Apple — no Gatekeeper warnings.
Requires macOS 14 (Sonoma) or later.
WhatCable reads three families of IOKit services. No entitlements, no private APIs, no helper daemons:
| Service | What it gives us |
|---|---|
AppleHPMInterfaceType10/11 |
Per-port state: connection, transports, plug orientation, e-marker presence |
IOPortFeaturePowerSource |
Full PDO list from the connected source, with the live "winning" PDO |
IOPortTransportComponentCCUSBPDSOP |
PD Discover Identity VDOs for SOP (port partner) and SOP' (cable e-marker) |
Cable speed and power decoding follow the USB Power Delivery 3.x spec.
swift run WhatCable
Requires Swift 5.9 (Xcode 15+).
./scripts/build-app.sh
Produces a universal dist/WhatCable.app (arm64 + x86_64) and dist/WhatCable.zip.
Modes:
| Configuration | Result |
|---|---|
No .env |
Ad-hoc signed. Works locally; Gatekeeper warns on other Macs. |
.env with DEVELOPER_ID |
Developer ID signed + hardened runtime. |
.env with DEVELOPER_ID + NOTARY_PROFILE |
Full notarisation + stapled ticket. Gatekeeper-clean for everyone. |
One-time setup for full notarisation:
security find-identity -v -p codesigning
xcrun notarytool store-credentials "WhatCable-notary" \
--apple-id "you@example.com" \
--team-id "ABCDE12345" \
--password "
cp .env.example .env
Issues and PRs welcome. The code is small and tries to stay readable — start at Sources/WhatCable/ContentView.swift for the UI, PortSummary.swift for the plain-English logic, or PDVDO.swift for the bit-twiddling.
Built by Darryl Morley.
Inspired by every time someone has asked "is this cable any good?".