Skip to content

Commit

Permalink
Fix bad path manipulation in macOS VM
Browse files Browse the repository at this point in the history
We should have been using `stringByAppendingPathComponent:`, not
`stringByAppendingPathExtension`. This didn't matter until Sierra, where
they improved/increased error checking.

@bpollack #39
  • Loading branch information
fniephaus committed Sep 1, 2016
1 parent 5f7a750 commit f2b5cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/iOS/vm/OSX/sqMacUnixExternalPrims.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
NSString *libName;

libName = [dirNameString stringByAppendingPathComponent: @(moduleName)];
libName = [libName stringByAppendingPathExtension: @"bundle/Contents/MacOS/"];
libName = [libName stringByAppendingPathComponent: @"bundle/Contents/MacOS/"];
libName = [libName stringByAppendingPathComponent: @(moduleName)];
handle = tryLoadingInternals(libName);
if (handle)
Expand Down

0 comments on commit f2b5cf2

Please sign in to comment.