| ... | ... | @@ -37,15 +37,16 @@ pub fn isSdkInstalled(allocator: Allocator) bool { |
| 37 | 37 | pub fn getSdk(allocator: Allocator, target: Target) ?[]const u8 { |
| 38 | 38 | const is_simulator_abi = target.abi == .simulator; |
| 39 | 39 | const sdk = switch (target.os.tag) { |
| 40 | | .macos => "macosx", |
| 41 | 40 | .ios => switch (target.abi) { |
| 42 | | .simulator => "iphonesimulator", |
| 43 | 41 | .macabi => "macosx", |
| 42 | .simulator => "iphonesimulator", |
| 44 | 43 | else => "iphoneos", |
| 45 | 44 | }, |
| 46 | | .watchos => if (is_simulator_abi) "watchsimulator" else "watchos", |
| 45 | .driverkit => "driverkit", |
| 46 | .macos => "macosx", |
| 47 | 47 | .tvos => if (is_simulator_abi) "appletvsimulator" else "appletvos", |
| 48 | 48 | .visionos => if (is_simulator_abi) "xrsimulator" else "xros", |
| 49 | .watchos => if (is_simulator_abi) "watchsimulator" else "watchos", |
| 49 | 50 | else => return null, |
| 50 | 51 | }; |
| 51 | 52 | const argv = &[_][]const u8{ "xcrun", "--sdk", sdk, "--show-sdk-path" }; |