{"record":{"id":"b5739c57050332da","repo":"DioxusLabs/dioxus","slug":"ios-app-bundle-not-found-at-ensure-the-ios-bui","errorCode":null,"errorMessage":"iOS app bundle not found at {}. Ensure the iOS build completed successfully.","messagePattern":"iOS app bundle not found at (.+?)\\. Ensure the iOS build completed successfully\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/ios.rs","lineNumber":18,"sourceCode":"use super::{Arch, Bundle, BundleContext, copy_dir_recursive, zip_dir_recursive};\nuse crate::PackageType;\nuse anyhow::{Context, Result, bail};\nuse std::path::{Path, PathBuf};\nuse tokio::process::Command;\n\npub(crate) struct IosBundled {\n    pub ipa: Vec<PathBuf>,\n    #[allow(dead_code)]\n    pub app: Vec<PathBuf>,\n}\n\nimpl BundleContext<'_> {\n    /// Return the already-assembled iOS `.app` bundle produced by the build pipeline.\n    pub(crate) async fn bundle_ios_app(&self) -> Result<Vec<PathBuf>> {\n        let app_path = self.build.root_dir();\n        if !app_path.exists() {\n            bail!(\n                \"iOS app bundle not found at {}. Ensure the iOS build completed successfully.\",\n                app_path.display()\n            );\n        }\n\n        Ok(vec![app_path])\n    }\n\n    /// Package a signed iOS `.app` into an App Store distributable `.ipa`.\n    pub(crate) async fn bundle_ios_ipa(&self, bundles: &[Bundle]) -> Result<IosBundled> {\n        validate_ios_ipa_target(&self.target(), self.binary_arch())?;\n\n        let (app_paths, synthesized_app_paths) = if let Some(app_bundle) = bundles\n            .iter()\n            .find(|bundle| bundle.package_type == PackageType::IosApp)\n        {\n            (app_bundle.bundle_paths.clone(), Vec::new())\n        } else {","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/ios.rs#L1-L36","documentation":"bundle_ios_app expected an already-assembled .app bundle at the build's root directory but it does not exist. The iOS build pipeline should have produced it earlier; its absence means that stage failed or was skipped, so bundling bails.","triggerScenarios":"Thrown at packages/cli/src/bundler/ios.rs:18 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The iOS .app bundle is missing. Run the iOS build first (dx build --platform ios) and make sure it completes successfully."],"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"}