Fix SolveSpace not Running on macOS High Sierra

After upgrading to macOS High Sierra SolveSpace would not run. After launching the binary from the Terminal I got the following output.

/Applications/solvespace.app/Contents/MacOS/solvespace ; exit;
[~]$/Applications/solvespace.app/Contents/MacOS/solvespace ; exit;
dyld: Symbol not found: _inflateValidate
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
  Expected in: /Applications/solvespace.app/Contents/MacOS/libz.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
Abort trap: 6
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

After looking through the issues on GitHub it looks like a simple way around this issue is to link directly to the system library.

cd /Applications/solvespace.app/Contents/MacOS
install_name_tool -change @executable_path/libz.dylib /usr/lib/libz.1.dylib solvespace

After running the command in the Terminal SolveSpace appears to be running well.

Leave a Reply