visionOS: Fix logic for finding the SDK root
The `sdk_name` is `xros`/`xrsimulator`, not `visionos`/`visionossimulator`.
This commit is contained in:
parent
b14d8b2ef2
commit
efbbfa24a5
1 changed files with 4 additions and 3 deletions
|
@ -3029,9 +3029,10 @@ fn get_apple_sdk_root(sdk_name: &str) -> Result<String, errors::AppleSdkRootErro
|
||||||
|| sdkroot.contains("MacOSX.platform") => {}
|
|| sdkroot.contains("MacOSX.platform") => {}
|
||||||
"watchsimulator"
|
"watchsimulator"
|
||||||
if sdkroot.contains("WatchOS.platform") || sdkroot.contains("MacOSX.platform") => {}
|
if sdkroot.contains("WatchOS.platform") || sdkroot.contains("MacOSX.platform") => {}
|
||||||
"visionos"
|
"xros"
|
||||||
if sdkroot.contains("XROS.platform") || sdkroot.contains("MacOSX.platform") => {}
|
if sdkroot.contains("XRSimulator.platform")
|
||||||
"visionossimulator"
|
|| sdkroot.contains("MacOSX.platform") => {}
|
||||||
|
"xrsimulator"
|
||||||
if sdkroot.contains("XROS.platform") || sdkroot.contains("MacOSX.platform") => {}
|
if sdkroot.contains("XROS.platform") || sdkroot.contains("MacOSX.platform") => {}
|
||||||
// Ignore `SDKROOT` if it's not a valid path.
|
// Ignore `SDKROOT` if it's not a valid path.
|
||||||
_ if !p.is_absolute() || p == Path::new("/") || !p.exists() => {}
|
_ if !p.is_absolute() || p == Path::new("/") || !p.exists() => {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue