| ... | @@ -15,7 +15,7 @@ pub const macos = @import("darwin/macos.zig"); | ... | @@ -15,7 +15,7 @@ pub const macos = @import("darwin/macos.zig"); |
| 15 | pub fn isSdkInstalled(allocator: Allocator) bool { | 15 | pub fn isSdkInstalled(allocator: Allocator) bool { |
| 16 | const result = std.process.Child.run(.{ | 16 | const result = std.process.Child.run(.{ |
| 17 | .allocator = allocator, | 17 | .allocator = allocator, |
| 18 | .argv = &.{ "/usr/bin/xcode-select", "--print-path" }, | 18 | .argv = &.{ "xcode-select", "--print-path" }, |
| 19 | }) catch return false; | 19 | }) catch return false; |
| 20 | | 20 | |
| 21 | defer { | 21 | defer { |
| ... | @@ -48,7 +48,7 @@ pub fn getSdk(allocator: Allocator, target: Target) ?[]const u8 { | ... | @@ -48,7 +48,7 @@ pub fn getSdk(allocator: Allocator, target: Target) ?[]const u8 { |
| 48 | .visionos => if (is_simulator_abi) "xrsimulator" else "xros", | 48 | .visionos => if (is_simulator_abi) "xrsimulator" else "xros", |
| 49 | else => return null, | 49 | else => return null, |
| 50 | }; | 50 | }; |
| 51 | const argv = &[_][]const u8{ "/usr/bin/xcrun", "--sdk", sdk, "--show-sdk-path" }; | 51 | const argv = &[_][]const u8{ "xcrun", "--sdk", sdk, "--show-sdk-path" }; |
| 52 | const result = std.process.Child.run(.{ .allocator = allocator, .argv = argv }) catch return null; | 52 | const result = std.process.Child.run(.{ .allocator = allocator, .argv = argv }) catch return null; |
| 53 | defer { | 53 | defer { |
| 54 | allocator.free(result.stderr); | 54 | allocator.free(result.stderr); |