{"record":{"id":"13ebf06c795bd3ec","repo":"denoland/deno","slug":"could-not-find-backend-backend-binary-inside","errorCode":null,"errorMessage":"could not find '{backend}' backend binary inside {}","messagePattern":"could not find '(.+?)' backend binary inside (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/desktop.rs","lineNumber":2089,"sourceCode":"      // id — same fix as the download path, applied every launch\n      // because a fresh `cargo build` of laufey restores the linker's\n      // default `Identifier=laufey`. The harmonize call is idempotent:\n      // already-correct binaries are skipped.\n      #[cfg(target_os = \"macos\")]\n      if let Some(laufey_app) = laufey_app_for_binary(&binary)\n        && let Err(e) = harmonize_laufey_app_identifiers(&laufey_app)\n      {\n        log::warn!(\n          \"[desktop] could not re-sign dev laufey backend: {e} \\\n           (notifications may not work in HMR mode)\"\n        );\n      }\n      return Ok(binary);\n    }\n\n    let dir = self.ensure_downloaded(backend, target).await?;\n    locate_backend_binary(&dir, backend, target).ok_or_else(|| {\n      deno_core::anyhow::anyhow!(\n        \"could not find '{backend}' backend binary inside {}\",\n        dir.display()\n      )\n    })\n  }\n\n  /// Locate the LAUFEY `.app` bundle for `backend` on a macOS `target`.\n  async fn find_app_bundle(\n    &self,\n    backend: &str,\n    target: &str,\n  ) -> Result<PathBuf, AnyError> {\n    if let Some(dev_dir) = laufey_dev_dir() {\n      return locate_dev_app_bundle(&dev_dir, backend).ok_or_else(|| {\n        deno_core::anyhow::anyhow!(\n          \"could not find '{backend}' .app bundle under {} (set via {})\",\n          dev_dir.display(),\n          LAUFEY_DEV_DIR_ENV","sourceCodeStart":2071,"sourceCodeEnd":2107,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/cli/tools/desktop.rs#L2071-L2107","documentation":"Error \"could not find '{backend}' backend binary inside {}\" thrown in denoland/deno.","triggerScenarios":"Thrown at cli/tools/desktop.rs:2089 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}