Ventura: Prevented from modifying apps on your Mac

I have an Electron app that ships with some nested binaries. It is still correctly signing and notarizing, but some users are seeing a warning on Ventura.

The app ships as a DMG. Because of some issues with path randomization, the first thing our app does is check if the app is running from /Applications and propmt to move . If the user double clicks on the app instead of moving it in the DMG's UI, they get this prompt. Once they move it to applications, they see a prompt "My App Name" was prevented from modifying apps on your Mac. Except my app was not prevented from modifying apps - it successfully moves to the /Applications directory.

There is some other bizarre behavior associated with this:

  • After seeing the warning, my app is added to "Privacy & Security > App Management" in settings with the box unchecked. However, future attempts to reproduce the bug above do not work untli this is removed from the list entirely.
  • If I move the application out of the DMG to ~/Desktop, then start it, clicking 'move to applications' folder does not show the prompt

What I have done to debug this:

  • I think it has something to do with gatekeeper, because if I produce the DMG locally without downloading it from the internet I don't see the warning
  • I've looked through console.app when the prompt shows up but haven't found much useful

Most folks who have this problem know why they’re having this problem. They have code that actually modifies the app. This is a weird case because the only code that might trigger this, the code to move your app, should not be modifying the contents of your app. Hmmm.

I should be able to help you track down the cause but I’ll need to take a deeper look at your problem than I have time for here on DevForums. If you open a DTS tech support incident, I can help you out there.

Make sure to reference this DevForums thread in your initial submission.

Share and Enjoy

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

Received this today while using the Xcode Simulator iOS device and cycling through keyboards. Specifically, the notification that showed up on the system Ventura 13.4.1 (22F82):

Privacy & Security"SimulatorTrampoline.xpc" was prevented from modifying apps on your Mac.

App was not special, simple login screen with a single text field. Simulator device was iPhone SE (3rd gen) -- iOS 16.4. Keyboards were English (email), Japanese Kana, and emoji. (App was launched via homescreen not Xcode)

The "Prevented from modifying apps on your Mac" message can be bypassed in Settings → Privacy & Security → App Management (switch the toggle for the app you want to be able to modify other apps).

Ventura: Prevented from modifying apps on your Mac
 
 
Q