Post

Replies

Boosts

Views

Activity

Comment on Get executable path from audit token provided by NEFilterDataProvider
What may be interesting, and what I noticed for the first time, is that after keeping my app open for several hours and noticing all those apparently unsigned processes, it began listing some of those same names, but this time they were correctly signed: trustd, mobileassetd, nsurlsessiond. They all started being listed at the same time at a distance of a few seconds from each other, at 6:06:33 PM today.
Oct ’23
Comment on Audit token provided by NEFilterDataProvider sometimes fails to provide code object with SecCodeCopyGuestWithAttributes
Hi Quinn, thanks a lot for your help. I created an empty Xcode project with the "Command Line Tool" template, pasted your code, and run the built executable in the Terminal. When passing the pids for all the trustd processes I see in Activity Monitor it always returns the expected path, /usr/libexec/trustd.
Oct ’23
Comment on Audit token provided by NEFilterDataProvider sometimes fails to provide code object with SecCodeCopyGuestWithAttributes
But then I created an empty Xcode project with the "App" template and created a main.swift file again with your code, and when running the built App/Contents/MacOS/app in the Terminal, I get the same error that I mentioned before: Error Domain=NSOSStatusErrorDomain Code=100001 "EPERM: Operation not permitted". Do I need to add special entitlements in order to make it work?
Oct ’23
Comment on NSDocument disregards save panel!
I had to do this myself several times to isolate a macOS bug: duplicate the Xcode project, then start reducing the code and test if the issue still happens, and if it does, make a duplicate of the duplicate so that I can go back to it in case my next reduction solves the issue. Keep repeating until you have a tiny project that reproduces it. It may take several hours (even the whole day) and test your patience to the extreme, but sometimes there's no other way.
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’25