From 47d56a54859cbba7dfe3fb8856189641f7d7d70e Mon Sep 17 00:00:00 2001 From: Isaac Wankerl Date: Mon, 13 Apr 2015 12:55:20 -0500 Subject: [PATCH] Use the bundleURL instead of executableURL with SecStaticCodeCreateWithPath() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The API docs say "For bundles, pass a URL to the root directory of the bundle… If you pass a URL to the main executable of a bundle, the bundle as a whole is generally recognized." --- Sparkle/SUCodeSigningVerifier.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SUCodeSigningVerifier.m b/Sparkle/SUCodeSigningVerifier.m index 17a765fe..731ca649 100644 --- a/Sparkle/SUCodeSigningVerifier.m +++ b/Sparkle/SUCodeSigningVerifier.m @@ -44,7 +44,7 @@ goto finally; } - result = SecStaticCodeCreateWithPath((__bridge CFURLRef)[newBundle executableURL], kSecCSDefaultFlags, &staticCode); + result = SecStaticCodeCreateWithPath((__bridge CFURLRef)[newBundle bundleURL], kSecCSDefaultFlags, &staticCode); if (result != noErr) { SULog(@"Failed to get static code %d", result); goto finally;