- Clone the repository
git clone https://github.com/bloomberg/xcdiff.git
cd xcdiff
- 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)"
To install xcdiff using Homebrew:
brew install xcdiff
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
- Clone the repository
git clone https://github.com/bloomberg/xcdiff.git
cd xcdiff
- Build and copy to
/usr/local/bin
make install
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
.