Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract xip archive using command line?

Tags:

I searched around how to extract XIP archive using command line with no luck so I am leaving my own solution, as a bash function, here.

I found my inspiration here.

like image 777
Ninja Inc Avatar asked Nov 04 '16 03:11

Ninja Inc


People also ask

How extract xip file in Linux?

@rexford if you just do open -W archive. xip from terminal that will launch bomArchiveHelper and unpack the xip in the current directory and will block until the unarchive is complete. I use this to open Xcode. xip via a shell call in Jenkins all the time.

How do you expand xip?

Conversation. Tip: when expanding an Xcode XIP archive, use the command line (xip --expand) rather than Archive Utility.


2 Answers

You could try:

xip -x [path to .xip file]

like image 162
Geoff Nixon Avatar answered Sep 22 '22 15:09

Geoff Nixon


On macOS Mojave (not sure about other OS versions), navigate to the directory into which you’d like to expand the contents, then run xip --expand /path/to/xip.xip. For instance:

iMac:Applications jeff$ xip --expand /Users/jeff/Downloads/Xcode_11_Beta.xip 
like image 41
Jeff Kelley Avatar answered Sep 20 '22 15:09

Jeff Kelley