Executing binary file returns "Operation not permitted" after signing application

Hello how do you do,


I'm developing an application using Unity 3D, however due to some necesseties I've wrote a native c code and compiled it to a binary file in which i put inside MyAppl.app/Contents/bin folder..

During the application run time I create a .command file in the app container which communicates with the binary file inside the app contents and run it as a new process..


Everything works great before signing, but after I get this in the log


getcwd: cannot access parent directories: Operation not permitted


And a message appears (binary_file_name has closed unexpectedly)..


Do I need a specific entitlement for this to work? or is there any other issue?


Thank You,

I've wrote a native c code and compiled it to a binary file in which i put inside

MyAppl.app/Contents/bin
folder.

This is not correct. Helper tools like this should be in the location specified by Table 3 of Technote 2206 macOS Code Signing In Depth. They must also be signed with the

com.apple.security.inherit
entitlement, as specified in the Entitlement Key Reference.

Once you do that you should be able to run the helper tool using standard mechanisms (for example, NSTask).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Executing binary file returns "Operation not permitted" after signing application
 
 
Q