Function apple_sdk::find_xcode_apps

source ·
pub fn find_xcode_apps(applications_dir: &Path) -> Result<Vec<PathBuf>, Error>
Expand description

Attempt to resolve all available Xcode applications in an Applications directory.

This function is a convenience method for iterating a directory and filtering for Xcode*.app entries.

No guarantee is made about whether the directory constitutes a working Xcode application.

The results are sorted according to the directory name. However, Xcode.app always sorts first so the default application name is always preferred.

Examples found in repository?
src/lib.rs (line 739)
738
739
740
pub fn find_system_xcode_applications() -> Result<Vec<PathBuf>, Error> {
    find_xcode_apps(&PathBuf::from("/Applications"))
}