How do I get MacOS to stop using my SecurityAgentPlugin from the StagedPlugins folder?

When I install a new version in /Library/Security/SecurityAgentPlugins, the Mac keeps loading from the StagedPlugins folder. Probably due to the previous version crashing at some point.

I see these lines in the console log:

SecurityAgent debug 10:16:53.724914-0500 SecurityAgent Location /Library/Security/SecurityAgentPlugins/iAuthAgentMechanism.bundle is not under SIP

iAuthAgentMechanism.bundle is signed with the same Developer ID as the one in StagedPlugins.

SecurityAgent debug 10:16:53.725308-0500 SecurityAgent The new safe location: /Library/Security/SecurityAgentPlugins/StagedPlugins/iAuthAgentMechanism.bundle

If I roll CURRENT_PROJECT_VERSION up, the new version does get used but the old version remains in StagedPlugins.

What macOS version is this?

Share and Enjoy

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

macOS 26.6 Beta (25G5043d)

OK, cool, I was worried this was a regression in macOS 27 beta.

Earlier you wrote:

If I roll CURRENT_PROJECT_VERSION up, the new version does get used

Cool. That’s kinda what I was expecting.

but the old version remains in StagedPlugins.

Hmmm, weird. So where does the new version get loaded from?

And does the leftover plug-in go away when you restart?

Share and Enjoy

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

How do I get MacOS to stop using my SecurityAgentPlugin from the StagedPlugins folder?
 
 
Q