Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/fix-ios-export-options-tempfile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri-cli': 'patch:bug'
---

Fix iOS export failing with "Couldn't load -exportOptionsPlist" error when running `tauri ios run`.
5 changes: 4 additions & 1 deletion crates/tauri-cli/src/mobile/ios/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ pub struct BuiltApplication {
// prevent drop
#[allow(dead_code)]
options_handle: OptionsHandle,
#[allow(dead_code)]
export_options_tmp: Option<tempfile::NamedTempFile>,
}

pub fn command(options: Options, noise_level: NoiseLevel, dirs: &Dirs) -> Result<BuiltApplication> {
Expand Down Expand Up @@ -293,7 +295,7 @@ pub fn command(options: Options, noise_level: NoiseLevel, dirs: &Dirs) -> Result
}

// merge export options and write to temp file
let _export_options_tmp = if !export_options_plist.is_empty() {
let export_options_tmp = if !export_options_plist.is_empty() {
let export_options_plist_path = config.project_dir().join("ExportOptions.plist");
let export_options =
tempfile::NamedTempFile::new().context("failed to create temporary file")?;
Expand Down Expand Up @@ -337,6 +339,7 @@ pub fn command(options: Options, noise_level: NoiseLevel, dirs: &Dirs) -> Result
config,
interface,
options_handle,
export_options_tmp,
})
}

Expand Down
Loading