Skip to content

Latest commit

 

History

History
84 lines (59 loc) · 1.39 KB

Installation.md

File metadata and controls

84 lines (59 loc) · 1.39 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

TODO

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.7.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.