{"record":{"id":"2dc4b7d948064855","repo":"DioxusLabs/dioxus","slug":"app-bundle-does-not-exist-at-expected-path","errorCode":null,"errorMessage":".app bundle does not exist at expected path: {}","messagePattern":"\\.app bundle does not exist at expected path: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/macos.rs","lineNumber":285,"sourceCode":"            .unwrap_or(&product_name);\n\n        let (app_paths, app_bundle_paths) = if let Some(app_bundle) = bundles\n            .iter()\n            .find(|b| b.package_type == PackageType::MacOsBundle)\n        {\n            (app_bundle.bundle_paths.clone(), Vec::new())\n        } else {\n            let paths = self.bundle_macos_app().await?;\n            (paths.clone(), paths)\n        };\n\n        if app_paths.is_empty() {\n            bail!(\"No .app bundle found to package into a DMG\");\n        }\n\n        let app_path = &app_paths[0];\n        if !app_path.exists() {\n            bail!(\n                \".app bundle does not exist at expected path: {}\",\n                app_path.display()\n            );\n        }\n\n        let output_dir = self.project_out_directory().join(\"macos\");\n        fs::create_dir_all(&output_dir)?;\n\n        let dmg_filename = format!(\n            \"{}_{}_{}\",\n            bundle_name,\n            self.version_string(),\n            self.binary_arch()\n        );\n        let dmg_path = output_dir.join(format!(\"{dmg_filename}.dmg\"));\n\n        tracing::info!(\"Creating DMG at {}\", dmg_path.display());\n","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/macos.rs#L267-L303","documentation":"bundle_macos_dmg resolved the first .app path but that directory does not exist on disk. The recorded path is stale or the build output was removed before DMG creation, so the bundler bails with the expected path.","triggerScenarios":"Thrown at packages/cli/src/bundler/macos.rs:285 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The .app bundle is not at the expected path. Rebuild the macOS app and verify the output location."],"exampleFix":null,"handlingStrategy":"validation","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"}