From 17da7b5fb8b8566a6950ba4412f9780c6718be64 Mon Sep 17 00:00:00 2001 From: Zorg Date: Thu, 8 Oct 2015 22:49:03 -0400 Subject: [PATCH] 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+ --- TestApplication/SUTestApplicationDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestApplication/SUTestApplicationDelegate.m b/TestApplication/SUTestApplicationDelegate.m index b46a739a..9296073f 100644 --- a/TestApplication/SUTestApplicationDelegate.m +++ b/TestApplication/SUTestApplicationDelegate.m @@ -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;