Developer fixes macOS AI app crash by bundling 24 Homebrew dylibs and rewriting paths
A developer building a double-click macOS installer for the open-source DeepSeek Harness AI agent workbench discovered the app crashed instantly on clean Macs with no logs. Using the diagnostic tool otool -L, they found the bundled Node binary was linked to 24 dynamic libraries via absolute Homebrew paths, which did not exist on machines without Homebrew installed. The fix involved recursively scanning the full dependency graph, copying every required dylib into the app bundle, and rewriting all paths to use @loader_path with install_name_tool before re-signing the app. The corrected bundle was also re-signed to satisfy macOS security requirements. The final installer shrank from 792 MB to 620 MB while adding three plugins, and all build scripts have been released as open source.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in