Closed zx500xl closed 9 months ago
I have a code like this:
func get_task(pid: pid_t) throws -> mach_port_t { var task: mach_port_t = 0 let taskResult = task_for_pid(mach_task_self_, pid, &task) if taskResult != 0 { throw MachOError.message("Failed to find get task, error: \(machError(code: taskResult))") } return (pid, task) }
It fails with message:
Error: message("Failed to find get task, error: #5: \"(os/kern) failure\"")
my entitlements contain:
... <key>get-task-allow</key> <true/> <key>com.apple.system-task-ports.control</key> <true/> <key>com.apple.system-task-ports.token.control</key> <true/> <key>task_for_pid-allow</key> <true/> <key>com.apple.security.get-task-allow</key> <true/> ...
I'll ask Xina about this
I have a code like this:
It fails with message:
my entitlements contain: