xtool.git / Linux / README.md
| 1 | # xtool + Linux = <3 |
| 2 | |
| 3 | xtool currently uses AppImage to build its Linux CLI. It is possible to build and run the AppImage on a native Linux host, as well as through Docker (natively or through Docker Desktop on macOS). |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | Make sure `usbmuxd` is installed on your host machine. On macOS, `usbmuxd` is preinstalled. |
| 8 | |
| 9 | ### Using Docker |
| 10 | |
| 11 | You can build and run a container with standard Docker Compose commands, for example: |
| 12 | ``` |
| 13 | docker compose run --rm xtool |
| 14 | ``` |
| 15 | This will spawn a shell inside the container. The xtool root directory will be bind-mounted at `/xtool`. |
| 16 | |
| 17 | To actually access iOS devices from inside Docker, you'll also need to forward the host's `usbmuxd` to a port which the Docker container's libusbmuxd will connect to. Keep this command running on your host machine: |
| 18 | ``` |
| 19 | socat -dd TCP-LISTEN:27015,range=127.0.0.1/32,reuseaddr,fork UNIX-CLIENT:/var/run/usbmuxd |
| 20 | ``` |
| 21 | |
| 22 | ## Building |
| 23 | |
| 24 | Simply run `./build.sh` in this directory. This will output an AppImage to `packages/xtool.AppImage`, which can directly be invoked. |