Skip to content

Commit

Permalink
add a check for xcrun present, but no devicectl
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos authored and kali committed Apr 11, 2024
1 parent a1f7d33 commit 7904ea4
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 @@ -244,6 +244,10 @@ fn devices() -> Result<Vec<Box<dyn Device>>> {
log::warn!("xcrun not found. Apple devices support disabled. Consider installing XCode and its command line tools.");
return Ok(vec!())
}
if !std::process::Command::new("xcrun").arg("--find").arg("devicectl").output()?.status.success() {
log::warn!("xcrun devicectl not found. Apple devices support disabled. Consider updating 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 7904ea4

Please sign in to comment.