I have the same problem (Xcode 12.3, MacOS 10.15 Catalina and 11.1 Big Sur).
Our code (a security tool based on the new EndpointSecurity framework) attempts to extract some code-signing information for processes as part of logic that determines whether or not to authorize some user actions)
So we execute
Code Block CFDictionaryRef attributes = (bridge CFDictionaryRef)@{(bridge NSString *)kSecGuestAttributePid : [NSNumber numberWithInt:self.pid] }; |
SecCSFlags options = kSecCSDefaultFlags; |
status = SecCodeCopyGuestWithAttributes(NULL, attributes, options, &dynamicCode); |
and then do some verifications on the
dynamicCode -- however, we're flooded with the same logs as the OP, plus, for some reason - despite the method returning success, OS hangs and kills our process immediately at that point (EndpointSecurity clients have this harsh reaction to just about anything, including any attempt to debug, or breakpoint, or run with instruments, or experience certain exceptions etc.). When run outside of the ES context - the code runs just fine, but logs are still emitted, for each execution of the
SecCodeCopyGuestWithAttributes