pub struct Xcode { /* private fields */ }Available on macOS and crate feature
apple only.Expand description
A resolved Xcode developer directory.
Implementations§
Source§impl Xcode
impl Xcode
Sourcepub fn resolve(env_key: &str) -> Self
pub fn resolve(env_key: &str) -> Self
Resolve Xcode from env_key, falling back to the standard Xcode.app path.
Sourcepub fn new(developer_dir: impl Into<PathBuf>) -> Self
pub fn new(developer_dir: impl Into<PathBuf>) -> Self
Construct an Xcode from an explicit developer directory.
Sourcepub fn developer_dir(&self) -> &Path
pub fn developer_dir(&self) -> &Path
Return the developer directory.
Sourcepub fn has_ios_sdk(&self) -> bool
pub fn has_ios_sdk(&self) -> bool
Return true when this Xcode installation contains an iOS platform SDK.
Sourcepub fn xcrun(&self, sh: &Shell, sdk: &str, args: &[&str]) -> Result<String>
pub fn xcrun(&self, sh: &Shell, sdk: &str, args: &[&str]) -> Result<String>
Run /usr/bin/xcrun --sdk <sdk> ... with this DEVELOPER_DIR and return trimmed stdout.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Xcode
impl Freeze for Xcode
impl Move for Xcode
impl RefUnwindSafe for Xcode
impl Send for Xcode
impl Sync for Xcode
impl Unpin for Xcode
impl UnsafeUnpin for Xcode
impl UnwindSafe for Xcode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more