openwork icon indicating copy to clipboard operation
openwork copied to clipboard

[Bug]: Can't run desktop app, experiencing Failed to codesign error

Open JKFerland opened this issue 7 months ago • 1 comments

Summary

Due to changes in commit c826356, experiencing issues running the app locally on tahoe 26.3.1. Error I get when running:

Running BeforeDevCommand (node ./scripts/tauri-before-dev.mjs) [47ms] bundle 196 modules [152ms] compile /Users/joesephferland/github/openwork/apps/desktop/src-tauri/sidecars/openwork-server-bun-darwin-arm64 Warn Waiting for your frontend dev server to start on http://localhost:5173/... OpenCode sidecar already present (1.4.9). [2ms] bundle 1 modules [84ms] compile /Users/joesephferland/github/openwork/apps/desktop/src-tauri/sidecars/chrome-devtools-mcp-bun-darwin-arm64 file:///Users/joesephferland/github/openwork/apps/desktop/scripts/prepare-sidecar.mjs:271 throw new Error(Failed to codesign ${filePath}${stderr ? : ${stderr} : ""}); ^

Error: Failed to codesign /Users/joesephferland/github/openwork/apps/desktop/src-tauri/sidecars/chrome-devtools-mcp-bun-darwin-arm64: /Users/joesephferland/github/openwork/apps/desktop/src-tauri/sidecars/chrome-devtools-mcp-bun-darwin-arm64: replacing existing signature /Users/joesephferland/github/openwork/apps/desktop/src-tauri/sidecars/chrome-devtools-mcp-bun-darwin-arm64: main executable failed strict validation at adHocSignDarwin (file:///Users/joesephferland/github/openwork/apps/desktop/scripts/prepare-sidecar.mjs:271:11) at adHocSignDarwinSidecars (file:///Users/joesephferland/github/openwork/apps/desktop/scripts/prepare-sidecar.mjs:278:5) at file:///Users/joesephferland/github/openwork/apps/desktop/scripts/prepare-sidecar.mjs:638:1 at ModuleJob.run (node:internal/modules/esm/module_job:358:25) at async onImport.tracePromise.proto (node:internal/modules/esm/loader:665:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:99:5)

I tried the following:

  1. Ran file on the binary → confirmed valid Mach-O 64-bit executable arm64, not corrupt
  2. Ran codesign -dvv → confirmed flags=0x20002(adhoc,linker-signed), Signature=adhoc
  3. Deleted the binary (rm chrome-devtools-mcp-bun-darwin-arm64) to force a fresh rebuild — rebuild produced another linker-signed binary with the same issue
  4. Ran codesign --remove-signature manually → got "internal error in Code Signing subsystem"; macOS 14+ blocks removal of linker signatures entirely

I may be doing something wrong.

To Reproduce

  1. pnpm install
  2. pnpm dev

Expected behavior

App runs

Actual behavior

App fails to run

Screenshots (optional)

No response

OW version & Desktop info (optional)

No response

Additional context (optional)

No response

JKFerland avatar Apr 30 '26 02:04 JKFerland

we switched over to electron, can you check the new downloads from website to see if they fix the issue?

src-opn avatar May 04 '26 23:05 src-opn