I've tried copying this code and converting it to Objective C with no luck from this link https://developer.apple.com/forums/thread/126820
extension NEFilterFlow {
var sourceAppAuditTokenQ: audit_token_t? {
guard
let tokenData = self.sourceAppAuditToken,
tokenData.count == MemoryLayout<audit_token_t>.size
else { return nil }
return tokenData.withUnsafeBytes { buf in
buf.baseAddress!.assumingMemoryBound(to: audit_token_t.self).pointee
}
}
}
Any ideas? Thanks