diff --git a/SMJobKit/SMJClientUtility.m b/SMJobKit/SMJClientUtility.m index 026a0d2..75724a5 100644 --- a/SMJobKit/SMJClientUtility.m +++ b/SMJobKit/SMJClientUtility.m @@ -20,7 +20,7 @@ + (NSString*) versionForBundlePath:(NSString*)bundlePath error:(NSError**)error SecStaticCodeRef codeRef; OSStatus result; - result = SecStaticCodeCreateWithPath((__bridge CFURLRef)[NSURL URLWithString:bundlePath], kSecCSDefaultFlags, &codeRef); + result = SecStaticCodeCreateWithPath((__bridge CFURLRef)[NSURL fileURLWithPath:bundlePath], kSecCSDefaultFlags, &codeRef); if (result != noErr) { if (result == errSecCSUnsigned)