pub fn find_system_xcode_applications() -> Result<Vec<PathBuf>, Error>
Expand description

Find all system installed Xcode applications.

This is a convenience method for find_xcode_apps() looking under /Applications. This location is typically where Xcode is installed.

Examples found in repository?
src/lib.rs (line 551)
550
551
552
553
554
555
556
557
558
559
560
561
562
563
    pub fn find_system_xcodes() -> Result<Vec<Self>, Error> {
        Ok(find_system_xcode_applications()?
            .into_iter()
            .filter_map(|p| {
                let path = p.join(XCODE_APP_RELATIVE_PATH_DEVELOPER);

                if path.exists() {
                    Some(Self { path })
                } else {
                    None
                }
            })
            .collect::<Vec<_>>())
    }