Skip to main content

Building

How to build ipsw from source.

Requirements

Install the Go binary

brew install go

Build the ipsw binary

git clone https://github.com/blacktop/ipsw.git
cd ipsw
make build

Build for all supported platforms using goreleaser and zig

Get goreleaser and zig

brew install goreleaser zig unicorn libusb

Build for all supported platforms

git clone https://github.com/blacktop/ipsw.git
cd ipsw
make snapshot
offline

To dev and build WITHOUT internet

On internet connected machine with Go installed download all Golang lib dependencies

git clone https://github.com/blacktop/ipsw.git
cd ipsw
go mod vendor # this downloads all of the dependencies into the `vendor` folder

Now copy the project's directory to no-net machine

Add --mod=vendor to use the Go deps in the vendor folder

CGO_ENABLED=1 go build --mod=vendor ./cmd/ipsw