No screenshots from macOS agent

After updating or reinstalling, the agent takes blank screenshots instead of screen images, despite the permission in the macOS privacy settings.

The issue is related to TCC (Transparency, Consent, and Control), a macOS security system that controls app permissions on the device, including file access and screen recording. When you remove an agent, TCC does not always remove permissions. As a result, when you reinstall or update an agent with an identical Bundle ID, the bundle signature is not updated in the permission database.

To enable screen capture, remove all TCC rules for the agent:

  1. First remove the agent:

    bash ./agent-macos.sh uninstall
    
  2. Make sure the agent is not in the list of allowed applications. If it’s still there, remove it:

    • right-click on the resolution and select Open in Finder;

    • remove StaffAgent.app from the Application folder.

  3. Reset TCC rules via terminal:

    tccutil reset ALL com.atomsec.ibatyr.service
    tccutil reset ALL com.atomsec.ibatyr
    tccutil reset ALL com.atomsec.ibatyr.fmon
    
  4. Repeat install the agent and configure permissions in Privacy Settings.

After this, screenshots should work.