I am having a hard time debugging an issue with NSTask.
I start NSTask using the following:
NSTask *convTask = [[NSTask alloc] init];
[convTask setLaunchPath:[[NSBundle mainBundle] executablePath]];
[convTask setArguments: [NSArray arrayWithObjects: @"convTask", source, target, nil]];
[convTask launch];
[convTask waitUntilExit];
[convTask terminate];
So it is basically launching a task that is another instance of my running app. This task is supposed to convert source (a file) to target (another file). And that is not working only when activate Sandbox. But even in Sandbox mode, when I use my terminal to execute the app using the same parameter passed to NSTask then the target gets created.
Thanks for your help!