How to make an uninstaller on macOS 13 Ventura?

Our audio driver uninstaller does not work properly on macOS 13 Ventura Beta. The uninstaller is for removing our Audio Server Plug-in as well as its associated app that resides in /Library/Application Support/ folder. The Audio Server Plug-in can be removed without any problems, but the associated app cannot be removed if it is notarized.

Our uninstaller uses SMJobSubmit function to execute a shell script with administrator privileges. I found the following error in the system log:

kernel: (Sandbox) System Policy: rm(676) deny(1) file-write-unlink /Library/Application Support/MyDriver/MyApp.app

I guess that the app cannot be removed because Gatekeeper protects notarized apps on Ventura. How can our uninstaller remove our notarized app?

Thank you.

I have the same problem too, do you have a solution?

The issue seems to have been resolved in macOS 13 Beta 3 released last week.

How to make an uninstaller on macOS 13 Ventura?
 
 
Q