Skip to content

Instantly share code, notes, and snippets.

@srid
Created August 17, 2026 23:40
Show Gist options
  • Select an option

  • Save srid/cdec063e607df693a5dacc82d0dd4ddb to your computer and use it in GitHub Desktop.

Select an option

Save srid/cdec063e607df693a5dacc82d0dd4ddb to your computer and use it in GitHub Desktop.
Debug xyne-boxes Killed: 9 on macOS Apple Silicon
#!/bin/sh
# https://github.com/juspay/xyne-boxes/pull/24
# Paste output back after: curl -fsSL https://raw.githubusercontent.com/juspay/xyne-boxes/nightly/installer/install.sh | sh
set -eu
bin="${XYNE_BOXES_BIN:-$HOME/.local/bin}/xyne-boxes"
echo "=== uname ==="
uname -a
echo "=== file ==="
file "$bin"
echo "=== xattr ==="
xattr -l "$bin" || true
echo "=== codesign ==="
codesign -dv --verbose=4 "$bin" 2>&1 || true
echo "=== spctl ==="
spctl -a -vv -t install "$bin" 2>&1 || true
echo "=== run ==="
set +e
"$bin" version
echo "exit=$?"
set -e
echo "=== ad-hoc sign, then run again ==="
codesign --force --sign - "$bin"
codesign -dv --verbose=4 "$bin" 2>&1 || true
set +e
"$bin" version
echo "exit=$?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment