{"record":{"id":"543b3884b3c8d913","repo":"DioxusLabs/dioxus","slug":"base64-decode-failed","errorCode":null,"errorMessage":"base64 --decode failed: {}","messagePattern":"base64 --decode failed: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/macos.rs","lineNumber":935,"sourceCode":"        .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\n            .context(\"Failed writing base64 certificate to decoder stdin\")?;\n    }\n\n    let output = child\n        .wait_with_output()\n        .await\n        .context(\"Failed to decode base64 certificate\")?;\n\n    if !output.status.success() {\n        bail!(\n            \"base64 --decode failed: {}\",\n            String::from_utf8_lossy(&output.stderr)\n        );\n    }\n\n    Ok(output.stdout)\n}\n\n/// The result of DMG bundling, which may include both the `.dmg` and `.app` outputs.\npub(crate) struct DmgBundled {\n    /// Paths to the generated `.dmg` file(s).\n    pub dmg: Vec<PathBuf>,\n    /// Paths to the generated `.app` bundle(s) (if the `.app` was built as a dependency).\n    pub app: Vec<PathBuf>,\n}\n\n/// A target to be code-signed.\nstruct SignTarget {","sourceCodeStart":917,"sourceCodeEnd":953,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/macos.rs#L917-L953","documentation":"The bundler piped the base64-encoded signing certificate through `base64 --decode` and the decoder exited non-zero (malformed input or missing tooling). The decode failure message includes the command's stderr so the certificate secret can be checked.","triggerScenarios":"Thrown at packages/cli/src/bundler/macos.rs:935 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The base64 value could not be decoded. Ensure the API key environment variable contains valid base64."],"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"}