Skip to content

Instantly share code, notes, and snippets.

View TerryGeng's full-sized avatar

Terry Geng TerryGeng

  • University of Maryland, College Park
  • College Park, Maryland
  • 02:26 (UTC -05:00)
View GitHub Profile
@talaviram
talaviram / add_debug_entitlement.sh
Last active October 22, 2024 14:07
Simple Utility Script for allowing debug of hardened macOS apps.
#! /bin/bash
# Simple Utility Script for allowing debug of hardened macOS apps.
# This is useful mostly for plug-in developer that would like keep developing without turning SIP off.
# Credit for idea goes to (McMartin): https://forum.juce.com/t/apple-gatekeeper-notarised-distributables/29952/57?u=ttg
# Update 2022-03-10: Based on Fabian's feedback, add capability to inject DYLD for sanitizers.
#
# Please note:
# - Modern Logic (on M1s) uses `AUHostingService` which resides within the system thus not patchable and REQUIRES to turn-off SIP.
# - Some hosts uses separate plug-in scanning or sandboxing.
# if that's the case, it's required to patch those (if needed) and attach debugger to them instead.