Codex bundled LibreOffice runtime is broken on macOS because it links to missing Homebrew dylibs.

Open 💬 1 comment Opened Jun 6, 2026 by elite-yy

What version of the Codex App are you using (From “About Codex” dialog)?

26.602.40724

What subscription do you have?

Plus

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

Codex Desktop bundled LibreOffice/soffice runtime fails to launch on macOS.

Command tested:
~/.cache/codex-runtimes/codex-primary-runtime/dependencies/bin/soffice --version

Observed error:
dyld: Library not loaded: /opt/homebrew/opt/little-cms2/lib/liblcms2.2.dylib
Referenced from:
~/.cache/codex-runtimes/codex-primary-runtime/dependencies/native/libreoffice-headless/libreoffice/LibreOfficeDev.app/Contents/Frameworks/libvcllo.dylib

Additional otool inspection shows libvcllo.dylib also links to:

  • /opt/homebrew/opt/fontconfig/lib/libfontconfig.1.dylib
  • /opt/homebrew/opt/freetype/lib/libfreetype.6.dylib

Those /opt/homebrew paths do not exist on this machine. Reinstalling Codex and clearing/rebuilding ~/.cache/codex-runtimes did not fix the issue; the rebuilt runtime still contains the same hardcoded Homebrew paths.

Impact:
DOCX generation itself works, but Codex DOCX visual rendering / document QA fails because soffice cannot start. macOS also shows an app launch error saying soffice cannot be opened and may need reinstalling.

Expected:
The bundled LibreOffice runtime should be self-contained, or its dylib references should use bundled libraries via @loader_path/@rpath instead of absolute Homebrew paths.

Machine appears not to have Homebrew /opt/homebrew installed. Codex runtime path timestamp after rebuild still points to the same bundled libreoffice-headless package.

What steps can reproduce the bug?

Command tested:
~/.cache/codex-runtimes/codex-primary-runtime/dependencies/bin/soffice --version

Observed error:
dyld: Library not loaded: /opt/homebrew/opt/little-cms2/lib/liblcms2.2.dylib
Referenced from:
~/.cache/codex-runtimes/codex-primary-runtime/dependencies/native/libreoffice-headless/libreoffice/LibreOfficeDev.app/Contents/Frameworks/libvcllo.dylib

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗