title: How to run a macOS app as root and use system calls?
body: <p>I'm trying to run the <code>setpriority</code> command from my macOS app (objective-c). It never works and I'm assuming it is because the app is not being run as the root user.</p>
  
  <ul>
  <li>I'm logged in to the admin account on my computer</li>
  <li>I've tried opening the app with <code>sudo</code></li>
  <li>I've tried using <code>chmod</code> on the app</li>
  <li>I've tried adding the app to the <code>Accessibility</code> list under <code>Security and Privacy</code></li>
  </ul>
  
  <p>Xcode version 9.2 (9C40b)</p>
  
  <p>I would appreciate any help, thanks!</p>