MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / run_xcrun

Function run_xcrun

packages/server/src/core_simulator.rs:50–60  ·  view source on GitHub ↗
(args: [&str; N])

Source from the content-addressed store, hash-verified

48}
49
50fn run_xcrun<const N: usize>(args: [&str; N]) -> anyhow::Result<Output> {
51 let output = Command::new("xcrun")
52 .args(args)
53 .output()
54 .context("run xcrun")?;
55 if output.status.success() {
56 Ok(output)
57 } else {
58 bail_with_output(&format!("xcrun {}", args.join(" ")), output)
59 }
60}
61
62fn bail_with_output(command: &str, output: Output) -> anyhow::Result<Output> {
63 let stderr = String::from_utf8_lossy(&output.stderr).trim().to_owned();

Callers 2

startFunction · 0.85
restartFunction · 0.85

Calls 2

bail_with_outputFunction · 0.85
outputMethod · 0.65

Tested by

no test coverage detected