Reverse engineer iPhone music sync and reimplement it for Linux

A Redditor guided Codex, and later Claude, for two months through packet captures and binary analysis to build rustunes, a Linux CLI that syncs music to iPhones over USB or WiFi.

Done withCodexClaude· Nov 15, 2026

What they did

Putting your own tracks into the built-in Music app on an iPhone normally needs a Mac, iTunes on Windows or another Apple device. The poster, u/Euphoric_Reading_56, wanted the same on Linux. Over about two months they steered Codex, switching to Claude from mid-October, to capture the data the official tools send to the phone and to do static analysis of Apple's device libraries and executables. From that work the agents helped them write rustunes, a command-line tool that copies music files to an iPhone over USB or WiFi, plus a written account of the protocol findings kept in the repo for later reference.

How it went

The poster says the tool works and has published it as open source on GitHub. It has only been tested on two iPhone 16 Pro Max phones running different iOS versions, and the poster is asking for reports from other models. They gave no figures on cost or how much of the code the agents wrote versus what they wrote themselves.

Worth knowing

rustunes refuses to run against iOS versions the author has not tested, to avoid damaging a music library; the oldest supported is iOS 26.6.2. The author says the protocol dates from iOS 15.4, so older iPods are out of scope, and points those users to libgpod. The post does not say which harness was used with Claude.

Try it

With Codex· 8 parts to fill in

Help me build an open-source tool for [Linux] that does what [the official sync app] does with [my device]. Start by planning how to capture the traffic between [the official app] and the device over [USB or WiFi], and how to statically analyse [the relevant libraries or executables] to understand the protocol. Write down every finding in [a notes file] as you go. Then implement the protocol step by step in [language], testing each step against my real device. Refuse to write to device versions we have not tested. Stop and ask me before any operation that could change or delete data on the device.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related