{"record":{"id":"66c413aa0732ccf7","repo":"DioxusLabs/dioxus","slug":"description-failed-with-exit-code","errorCode":null,"errorMessage":"`{description}` failed with exit code: {}","messagePattern":"`(.+?)` failed with exit code: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/macos.rs","lineNumber":907,"sourceCode":"    tracing::info!(\"Stapling notarization ticket...\");\n    let mut staple_cmd = Command::new(\"xcrun\");\n    staple_cmd.args([\"stapler\", \"staple\"]).arg(staple_path);\n    run_command(&mut staple_cmd, \"xcrun stapler staple\").await?;\n\n    tracing::info!(\"Notarization complete for {}\", staple_path.display());\n    Ok(())\n}\n\n/// Helper to run a command and return a nice error on failure.\nasync fn run_command(cmd: &mut Command, description: &str) -> Result<()> {\n    tracing::debug!(\"Running: {:?}\", cmd);\n    let status = cmd\n        .status()\n        .await\n        .with_context(|| format!(\"Failed to execute `{description}`\"))?;\n\n    if !status.success() {\n        bail!(\"`{description}` failed with exit code: {}\", status);\n    }\n    Ok(())\n}\n\n/// Decode base64 (standard or URL-safe).\nasync fn base64_decode(input: &str) -> Result<Vec<u8>> {\n    let mut child = Command::new(\"base64\")\n        .args([\"--decode\"])\n        .stdin(Stdio::piped())\n        .stdout(Stdio::piped())\n        .stderr(Stdio::piped())\n        .spawn()\n        .context(\"Failed to decode base64 certificate\")?;\n\n    if let Some(mut stdin) = child.stdin.take() {\n        stdin\n            .write_all(input.as_bytes())\n            .await","sourceCodeStart":889,"sourceCodeEnd":925,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/macos.rs#L889-L925","documentation":"A macOS bundling helper command (signing, stapling, or keychain setup) exited with a non-zero status. The generic run_command wrapper reports the human-readable description and exit code instead of the raw spawn result.","triggerScenarios":"Thrown at packages/cli/src/bundler/macos.rs:907 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The named notarization step failed. Read its exit code and output, then fix the reported error."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}