Skip to content

Commit

Permalink
only warn if xcrun is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos authored and kali committed Apr 11, 2024
1 parent 7c154dc commit a1f7d33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dinghy-lib/src/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ fn simulators(sim_type: AppleSimulatorType) -> Result<Vec<Box<dyn Device>>> {

fn devices() -> Result<Vec<Box<dyn Device>>> {
let mut devices: HashMap<String, IosDevice> = Default::default();
if which::which("xcrun").is_err() {
log::warn!("xcrun not found. Apple devices support disabled. Consider installing XCode and its command line tools.");
return Ok(vec!())
}
devices_from_devicectl(&mut devices)?;
devices_from_ios_deploy(&mut devices)?;
Ok(devices
Expand Down

0 comments on commit a1f7d33

Please sign in to comment.