Skip to content

Latest commit

 

History

History
88 lines (62 loc) · 1.47 KB

Installation.md

File metadata and controls

88 lines (62 loc) · 1.47 KB

Installation

CLI

Building from source

  1. Clone the repository
git clone https://github.com/bloomberg/xcdiff.git
cd xcdiff
  1. Build the project
swift build -c release

The binary will be created in .build/x86_64-apple-macosx/release/xcdiff. You can export this path to be able to use the executable from any location in your file system without specifying the full path.

export PATH="$PATH:$(swift build -c release --show-bin-path)"

Homebrew

To install xcdiff using Homebrew:

brew install xcdiff

Mint

To run xcdiff using Mint:

mint run bloomberg/xcdiff xcdiff --help

To install xcdiff using Mint:

mint install bloomberg/xcdiff

Once installed, you can use xcdiff directly:

xcdiff --help

Make

  1. Clone the repository
git clone https://github.com/bloomberg/xcdiff.git
cd xcdiff
  1. Build and copy to /usr/local/bin
make install

Framework

Swift Package Manager

Add xcdiff to your Package.swift file:

dependencies: [
    // ...
    .package(url: "https://github.com/bloomberg/xcdiff", .upToNextMinor(from: "0.12.0")),
]

Then add XCDiffCore as a dependency of your target:

// ...
.target(
    name: "MyTool",
    dependencies: ["XCDiffCore"]
)

See the Framework documentation for more details on how to leverage XCDiffCore.