The job will depend on you not reading what it sends to stdout / stderr. To do this, you need to create channels and install them using setStandardOutput
.
Use [NSFileHandle readToEndOfFileInBackgroundAndNotify]
and wait NSFileHandleReadToEndOfFileCompletionNotification
. This will give you all the data in the callback.
source
share