Skip to content

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

@JKFerland

Description

@JKFerland

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions