codex - 💡(How to fix) Fix Codex CLI `codex app` command installs `arm64` app on `x86_64` Mac [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17461Fetched 2026-04-12 13:28:21
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1unlabeled ×1

Error Message

$ codex app Codex Desktop not found; downloading installer... Downloading installer... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 184.8M 100 184.8M 0 0 64.21M 0 00:02 00:02 64.11M Mounting Codex Desktop installer... Installer mounted at /Volumes/Codex Installer. Installing Codex Desktop into /Applications... "disk4" ejected. Launching Codex Desktop from /Applications/Codex.app... Opening workspace /Users/erhhung/dev... The application /Applications/Codex.app cannot be opened because it has an incorrect executable format. Error: open -a /Applications/Codex.app /Users/erhhung/dev exited with exit status: 1

$ file /Applications/Codex.app/Contents/MacOS/* /Applications/Codex.app/Contents/MacOS/Codex: Mach-O 64-bit executable arm64

Root Cause

$ codex app
Codex Desktop not found; downloading installer...
Downloading installer...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100 184.8M 100 184.8M   0      0 64.21M      0   00:02   00:02         64.11M
Mounting Codex Desktop installer...
Installer mounted at /Volumes/Codex Installer.
Installing Codex Desktop into /Applications...
"disk4" ejected.
Launching Codex Desktop from /Applications/Codex.app...
Opening workspace /Users/erhhung/dev...
The application /Applications/Codex.app cannot be opened because it has an incorrect executable format.
Error: `open -a /Applications/Codex.app /Users/erhhung/dev` exited with exit status: 1

Code Example

$ codex app
Codex Desktop not found; downloading installer...
Downloading installer...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100 184.8M 100 184.8M   0      0 64.21M      0   00:02   00:02         64.11M
Mounting Codex Desktop installer...
Installer mounted at /Volumes/Codex Installer.
Installing Codex Desktop into /Applications...
"disk4" ejected.
Launching Codex Desktop from /Applications/Codex.app...
Opening workspace /Users/erhhung/dev...
The application /Applications/Codex.app cannot be opened because it has an incorrect executable format.
Error: `open -a /Applications/Codex.app /Users/erhhung/dev` exited with exit status: 1

$ file /Applications/Codex.app/Contents/MacOS/*
/Applications/Codex.app/Contents/MacOS/Codex: Mach-O 64-bit executable arm64
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.120.0

What subscription do you have?

ChatGPT

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 24.6.0 x86_64 i386

What terminal emulator and version are you using (if applicable)?

Ghostty

What issue are you seeing?

CLI command codex app installs the wrong macOS application binary on an Intel Mac.

What steps can reproduce the bug?

$ codex app
Codex Desktop not found; downloading installer...
Downloading installer...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100 184.8M 100 184.8M   0      0 64.21M      0   00:02   00:02         64.11M
Mounting Codex Desktop installer...
Installer mounted at /Volumes/Codex Installer.
Installing Codex Desktop into /Applications...
"disk4" ejected.
Launching Codex Desktop from /Applications/Codex.app...
Opening workspace /Users/erhhung/dev...
The application /Applications/Codex.app cannot be opened because it has an incorrect executable format.
Error: `open -a /Applications/Codex.app /Users/erhhung/dev` exited with exit status: 1

$ file /Applications/Codex.app/Contents/MacOS/*
/Applications/Codex.app/Contents/MacOS/Codex: Mach-O 64-bit executable arm64

What is the expected behavior?

codex app should launch the Codex Desktop app, installing it if necessary.

Additional information

No response

extent analysis

TL;DR

The issue can likely be resolved by ensuring the correct architecture of the Codex Desktop application binary is installed for the Intel Mac.

Guidance

  • The error message indicates that the installed Codex Desktop application has an incorrect executable format, suggesting an architecture mismatch.
  • The file command output shows that the executable is compiled for arm64, which is not compatible with Intel Macs.
  • To verify the issue, check the architecture of the Mac using uname -m or arch command and ensure it matches the expected architecture for the Codex Desktop application.
  • Consider downloading the correct version of the Codex Desktop installer that matches the Intel Mac architecture (e.g., x86_64).

Example

No code snippet is provided as it is not necessary for this issue.

Notes

The issue seems to be related to the architecture mismatch between the installed application and the Mac. Ensuring the correct architecture of the application binary should resolve the issue.

Recommendation

Apply workaround: Download the correct version of the Codex Desktop installer that matches the Intel Mac architecture (e.g., x86_64), as the current version seems to be compiled for arm64, which is not compatible with Intel Macs.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING