Skip to content

Commit

Permalink
Removed unsigned logging errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Dalton committed Dec 5, 2024
1 parent e6762d0 commit be4c1b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions XPC2Proc/XPC2Proc/Detection/CodeSigning.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ func getSigningID(for processPath: String) -> String? {
/// Create a reference to our static code to pull signing information
var staticCode: SecStaticCode?
let status = SecStaticCodeCreateWithPath(url as CFURL, SecCSFlags(), &staticCode)

/// This will mean unsigned code...
guard status == errSecSuccess, let code = staticCode else {
print("Error creating static code: \(status)")
// print("Error creating static code: \(status)")
return nil
}

Expand All @@ -117,7 +119,7 @@ func getSigningID(for processPath: String) -> String? {
/// Pull the signing ID from `kSecCodeInfoIdentifier`
guard copyStatus == errSecSuccess, let info = codeInfo as? [String: Any],
let signingID = info[kSecCodeInfoIdentifier as String] as? String else {
print("Error copying signing information: \(copyStatus)")
// print("Error copying signing information: \(copyStatus)")
return nil
}

Expand Down

0 comments on commit be4c1b7

Please sign in to comment.