Skip to content

Instantly share code, notes, and snippets.

@po6ix
po6ix / fetch-libimobiledevice.sh
Created September 29, 2023 23:58 — forked from Lessica/fetch-libimobiledevice.sh
Fetch libraries and executables for macOS from libimobiledevice artifacts. This script will make executables runnable without install them to specific paths.
#!/bin/sh
set -e
if ! test -x "`which ldid`"; then
echo "Cannot find ldid, you may install it via Homebrew."
exit 1
fi
if [ ! -d "$(xcode-select -p)" ]; then
@po6ix
po6ix / mac-enable-libfuzzer.md
Created September 29, 2023 19:56 — forked from mcandre/mac-enable-libfuzzer.md
macOS Enable libFuzzer
  1. Run brew install llvm --HEAD.
  2. Update certain shell variables:
# Prefer newer LLVM with fuzzing enabled
# shellcheck source=/dev/null
export CC='clang'
export CXX='clang++'
export LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"
PATH="$(brew --prefix)/opt/llvm/bin:$PATH"