XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.66k stars 122 forks source link

Add experimental unxip flag #187

Closed jpsim closed 2 years ago

jpsim commented 2 years ago

This mirrors this change in Xcodes.app: https://github.com/RobotsAndPencils/XcodesApp/pull/179

In my tests (M1 Max, 64GB RAM), unxipping is 3x faster than /usr/bin/xip. I measured unxipping Xcode 13.3 beta 3 twice with the flag on (~100s) and off (~300s).

To use this, you need to be running macOS 11 or later, and pass the --experimental-unxip flag to an xcodes install command.

E.g.

xcodes install --latest --experimental-unxip
jpsim commented 2 years ago

Based on my layman's understanding of the LGPL license, I believe this usage complies with its requirements that any modifications to the source file be made available under the same license, but I am not a lawyer.

jpsim commented 2 years ago

By the way, CI never ran on this PR because this repo has CI configured to require maintainer approval for PRs from first-time contributors.

MattKiazyk commented 2 years ago

yeah.. pretty sure it's broken at the moment, so I just merged it in