How to implement "Anti-Tampering" in MacOS

Hello,
Could anyone point me to a doc which details out how I could implement "Anti-Tampering" for my application in MacOS. Essentially we are trying to prevent users who have root access from removing our application unless they have the necessary credentials to do so. Appreciate the guidance.

Thank you
  • Open the app information (cmd-I on the file)

  • unlock permissions

  • set rights to read only


It will be impossible to delete the file without system password.
Thank you, but in the scenario I am describing the user has root access and hence can delete the file.
How to implement "Anti-Tampering" in MacOS
 
 
Q