LockerGnomeTech news and nostalgia for today's technology professionals
Subscribe

Search

Software

A New Python Tool Mounts Your iPhone as a Linux Folder Over WiFi, No Cable Needed

Amirjon06's MIT-licensed project also opens a single app's private Documents folder, remounts itself when the handset rejoins the network, and ships with 13 tests run against a real phone.

Chris Pirillo leaning over a huge sheet cake, piping a buttercream phone and a buttercream laptop joined by arcs of frosting.
Illustration: LockerGnome

The demo in the README is a handful of terminal lines. ls /mnt/iPhone returns Books, DCIM, Downloads, Music, PhotoData, Recordings and iTunes_Control. A cp pulls IMG_0048.JPEG out of the camera roll and into a photos folder. An echo drops a note.txt into the phone’s Downloads. No cable appears anywhere in the picture.

The project is called iphone-linux, from GitHub user Amirjon06, and it exists because the options were bad. The README lists them: USB plus ifuse is “broken on modern iOS (17+),” and iCloud on the web is “slow, requires internet, can’t access all folders.” Its own pitch is “no cable, no iTunes, no iCloud.”

The trick is borrowing a door Apple already built for developers. The tool connects through pymobiledevice3 using the mobdev2 protocol, the same one Xcode uses for wireless debugging. It finds the phone’s IP by listening for the _apple-mobdev2._tcp.local. Bonjour announcement, authenticates with a saved pairing record, and exposes the filesystem over AFC, Apple’s file service, through FUSE. A debugging channel, wearing a USB-stick costume.

Setup is short. Turn on Developer Mode on the phone (Settings, then Privacy & Security), join the same WiFi as the Linux box, and run bash install.sh, which builds a Python venv and puts iphone-linux on your PATH. One line in /etc/fuse.conf, user_allow_other, lets a regular user see the mount. Then iphone-linux mount asks you to tap Trust on the phone once. The pairing is saved and later mounts need no interaction. A device that only asks for trust one time is already easier to live with than most relationships.

The part the README leans on hardest is per-app access. iOS gives every app its own private Documents folder, and mount-app uses Apple’s HouseArrest protocol to open exactly one of them. Run iphone-linux mount-app com.apple.Pages and the mount shows Documents, Library and tmp; copy a report.pages into Documents and it lands inside the app. The README’s verdict: “No other Linux tool exposes this.” You need the app’s bundle ID, and iphone-linux apps lists what is installed.

The rest of the command list reads like a tool someone uses daily. mount-ro mounts read-only. watch mounts the phone whenever it joins the network. A systemd user service does the same at login, so the phone turns up as a folder without anyone typing anything.

Speed gets a number. A read-ahead cache pre-fetches 3 MB in background threads, and on a real iPhone over WiFi a 260 KB JPEG took 0.325 seconds cold and 0.199 seconds warm, which the README rounds to 39% faster. The author says sequential reads such as photo libraries and video benefit most, while small files and random reads are unaffected. A 13-test suite runs against real hardware and covers reads, a JPEG header check, a 1 MB write, overwrite, mkdir, rmdir, unlink and rename.

What the README does not settle is how far it travels. Ubuntu 24.04 and newer is the only platform it lists, with Python 3.10 or later, and the repo sits at 14 commits.

The larger point is where the tool gets its reach. It does not break into anything new; it uses the wireless channel Xcode already depends on, which means it stays alive as long as that channel does. Other Linux tools that need the same plumbing are the likely next arrivals, and per-app sandbox access is the obvious building block for backup scripts, photo-sync cron jobs and export pipelines that never touch a cable.

Watch two things. The first is whether the project grows past Ubuntu 24.04, since every other distribution is a question mark until someone reports back. The second is whether the Developer Mode requirement stays as friendly as it is today, because the whole design leans on it. If both hold, a wireless phone folder is simply a thing Linux does.

The cable drawer gets a day off.

More Software

Every Software story →