Skip to content

Commit

Permalink
fix(ios): checking package presence, closes #284 (#285)
Browse files Browse the repository at this point in the history
* fix(ios): dup stdio for commands checking package exists

* chore: add changelog
  • Loading branch information
pewsheen authored Mar 11, 2024
1 parent 46d0ac1 commit b370b38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-ios-check-package-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cargo-mobile2": patch
---

Fix a bug in checking for package presence when initiating an ios project
2 changes: 1 addition & 1 deletion src/os/macos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub fn open_file_with(

#[cfg(target_os = "macos")]
pub fn command_path(name: &str) -> std::io::Result<std::process::Output> {
duct::cmd("command", ["-v", name]).run()
duct::cmd("command", ["-v", name]).dup_stdio().run()
}

pub fn code_command() -> duct::Expression {
Expand Down

0 comments on commit b370b38

Please sign in to comment.