You must add it to your resources folder. Then, at runtime, read the path of the application resource package and add the name of the executable file (including subfolders if you add it to a folder inside the resource bundle)
For instance:
NSString *execPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"binaryname"];
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath: execPath];
source
share