- Clone the repository
git clone https://github.com/bloomberg/xcdiff.git
cd xcdiff- Build the project
swift build -c releaseThe 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)"To install xcdiff using Homebrew:
brew install xcdiffTo run xcdiff using Mint:
mint run bloomberg/xcdiff xcdiff --helpTo install xcdiff using Mint:
mint install bloomberg/xcdiffOnce installed, you can use xcdiff directly:
xcdiff --help- Clone the repository
git clone https://github.com/bloomberg/xcdiff.git
cd xcdiff- Build and copy to
/usr/local/bin
make installAdd xcdiff to your Package.swift file:
dependencies: [
// ...
.package(url: "https://github.com/bloomberg/xcdiff", .upToNextMinor(from: "0.14.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.