Fix Test App crashing on systems earlier than 10.9

Passing a NSURL instance to a NSTask's arguments calls
-[NSURL fileSystemRepresentation] which is only available on 10.9+
This commit is contained in:
Zorg committed 2015-10-08 22:49:03 -04:00
1 parent 545b8f2416
commit 17da7b5fb8
1 file changed
+1 -1
+1 -1
View File
@@ -120,7 +120,7 @@ static NSString * const UPDATED_VERSION = @"2.0";
signUpdateTask.launchPath = signUpdatePath;
NSURL *archiveURL = [serverDirectoryURL URLByAppendingPathComponent:zipName];
signUpdateTask.arguments = @[archiveURL, privateKeyPath];
signUpdateTask.arguments = @[archiveURL.path, privateKeyPath];
NSPipe *outputPipe = [NSPipe pipe];
signUpdateTask.standardOutput = outputPipe;