App Store–Compliant Methods for Uninstalling Root-Owned Applications

I would like to understand the recommended App Store–compliant method for uninstalling applications, particularly in cases where certain apps are owned by root rather than the user.

Currently, since root-owned apps cannot be uninstalled, I display the error message: 'App name couldn’t be moved to the Trash because you don’t have permission to access it. please run sudo chown -R $user /application/appname and try again'

I then instruct users to change the ownership of the app and try again, but this approach does not appear to align with App Store policies.

So, lemme see if I have this right:

  • You’re building a Mac app.
  • That ships on the Mac App Store.
  • And you want to be able to let the user select another app…
  • And then delete that app.

Is that right?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Yes, thats correct. basically its an uninstaller features to move the the app selected by user to trash.

App Store–Compliant Methods for Uninstalling Root-Owned Applications
 
 
Q