From 9089d97637e49bebbe7dba8adc6351e04b53a44d Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 15 Aug 2024 10:50:19 -0300 Subject: [PATCH] fix(cli): properly resolve merge config on mobile build closes #9970 (#10605) just applying the change from #10600 to xcode to fix the linked issue :) --- .changes/fix-config-override.md | 6 ++++++ tooling/cli/src/mobile/ios/xcode_script.rs | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 .changes/fix-config-override.md diff --git a/.changes/fix-config-override.md b/.changes/fix-config-override.md new file mode 100644 index 00000000000..29d94e701a8 --- /dev/null +++ b/.changes/fix-config-override.md @@ -0,0 +1,6 @@ +--- +"tauri-cli": patch:bug +"@tauri-apps/cli": patch:bug +--- + +Fixes `[android|ios] build --config ` failing to resolve. diff --git a/tooling/cli/src/mobile/ios/xcode_script.rs b/tooling/cli/src/mobile/ios/xcode_script.rs index 006d024721d..141d189ccda 100644 --- a/tooling/cli/src/mobile/ios/xcode_script.rs +++ b/tooling/cli/src/mobile/ios/xcode_script.rs @@ -95,6 +95,10 @@ pub fn command(options: Options) -> Result<()> { MobileTarget::Ios, )?; + if let Some(config) = &cli_options.config { + crate::helpers::config::merge_with(&config.0)?; + } + let env = env()?.explicit_env_vars(cli_options.vars); if !options.sdk_root.is_dir() {