Skip to content

Community Development

Brandon Dalton edited this page Nov 10, 2026 · 5 revisions
  • The following guide can be used to develop Mac Monitor without my (Swiftly Detecting) signing certificates.
  • The Community build configuration adhoc signs everything. This means the resulting app can only run in a VM with SIP disabled and AMFI relaxed. Therefore, never distribute a community build.

Requirements

  • Xcode 26 or newer.
  • A macOS 13.1+ VM on Apple silicon.

VM setup

  1. Boot the VM to recoveryOS and disable SIP: csrutil disable
  2. Relax AMFI so es_new_client honors an entitlement with no profile behind it: sudo nvram boot-args="amfi_get_out_of_my_way=1"
  3. Reboot and confirm: csrutil status; nvram boot-args
  • Expected: System Integrity Protection status: disabled and boot-args amfi_get_out_of_my_way=1.
  1. Turn on System Extension developer mode. This lets the app activate the extension outside /Applications: systemextensionsctl developer on

Build

ProjectSutro/Scripts/community-build.sh

This builds the Community configuration, adhoc signs the app, the extension, the macmonitor command line tool, and both embedded framework copies (with entitlements), and zips the app to ProjectSutro/build/MacMonitor-community.zip.

  • In Xcode, use the shared scheme ProjectSutro (Community). ⌘R works on your host for basic UI work (note the System Extension will not activate there).
  • For full development testing with the System Extension use the above community-build.sh script.

Install and run in the VM

  1. If a release version of Mac Monitor is installed in the VM, uninstall it and then reboot. You can delete the app from Finder (and select to remove the System Extension) or use the below command:
sudo systemextensionsctl uninstall 4HMJQ7V3SX com.swiftlydetecting.agent.securityextension && sudo rm -rf "/Applications/Mac Monitor.app"
  1. Copy MacMonitor-community.zip to the VM and extract. With developer mode on, any location works otherwise the app must be in /Applications:
sudo ditto -x -k MacMonitor-community.zip /Applications/
  1. Give the app to root. The zip records your user as the owner of every file, and the macmonitor tool inside it runs as root:
sudo chown -R root:wheel "/Applications/Mac Monitor.app"
  1. Open the app and click Allow for the extension in System Settings.
  2. Optionally, stream from the VM's terminal. You can also link the tool with Settings > Command Line > Install... and run sudo macmonitor stream:
sudo "/Applications/Mac Monitor.app/Contents/MacOS/macmonitor" stream

Clone this wiki locally