Have you tried the system()
function?
system("unzip -u -d [destination full path] [zip file full path]");
You'll need to construct an NSString
with your full command (including the file paths), and turn it into a C string for the system command, something like this:
NSString *myCommandString =
[NSString stringWithFormat:@"unzip -u -d %@ %@", destinationPath, zipPath];
system([myCommandString UTF8String]);
This won't return any of the command's output, so you'd be better off with the solution from the Unzip without prompt question if you want details about how the operation went, but if your project doesn't need error-handling this should be fine.