Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/pbxproj/object/target/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ pub enum PBXTargetPlatform {
/// macOS Platform
#[serde(rename = "macOS")]
MacOS,
/// visionOS Platform
#[serde(rename = "xrOS")]
XrOS,
/// Unknown or not support platform
Unknown,
}
Expand All @@ -35,6 +38,7 @@ impl PBXTargetPlatform {
"macosx" => Self::MacOS,
"appletvos" => Self::TvOS,
"watchos" => Self::WatchOS,
"xros" => Self::XrOS,
_ => Self::Unknown,
}
}
Expand All @@ -61,6 +65,7 @@ impl FromStr for PBXTargetPlatform {
"watchOS" => Ok(Self::WatchOS),
"tvOS" => Ok(Self::TvOS),
"macOS" => Ok(Self::MacOS),
"xrOS" => Ok(Self::XrOS),
_ => Ok(Self::Unknown),
}
}
Expand All @@ -73,6 +78,7 @@ impl ToString for PBXTargetPlatform {
Self::WatchOS => "watchOS",
Self::TvOS => "tvOS",
Self::MacOS => "macOS",
Self::XrOS => "xrOS",
_ => "",
}
.into()
Expand Down