Resolving "Permission Denied" Error in macOS App Debugging via Code Signature Removal

When I tried to debug an OS X app, I encountered a " Permission denied. Please ensure that ‘mac_server_arm’ is either codesigned or running as root" error. Although I had already executed sudo mac_server , it didn’t resolve the issue. However, successfully debugging became possible after removing the signature of the target application using codesign --remove-signature .

It’s likely the same issue as in MacOS Remote Debugger Not Working, please check it.

1 Like