@@ -70,18 +70,6 @@ export const APPLE_ARCHITECTURES = {
70
70
"arm64-apple-visionos-sim" : "arm64" ,
71
71
} satisfies Record < AppleTriplet , AppleArchitecture > ;
72
72
73
- export function getAppleSDKPath ( triplet : AppleTriplet ) {
74
- return cp
75
- . spawnSync (
76
- "xcrun" ,
77
- [ "--sdk" , XCODE_SDK_NAMES [ triplet ] , "--show-sdk-path" ] ,
78
- {
79
- encoding : "utf-8" ,
80
- }
81
- )
82
- . stdout . trim ( ) ;
83
- }
84
-
85
73
export function createPlistContent ( values : Record < string , string > ) {
86
74
return [
87
75
'<?xml version="1.0" encoding="UTF-8"?>' ,
@@ -103,7 +91,6 @@ type AppleConfigureOptions = {
103
91
104
92
export function getAppleConfigureCmakeArgs ( { triplet } : AppleConfigureOptions ) {
105
93
assert ( isAppleTriplet ( triplet ) ) ;
106
- const sdkPath = getAppleSDKPath ( triplet ) ;
107
94
const systemName = CMAKE_SYSTEM_NAMES [ triplet ] ;
108
95
109
96
return [
@@ -114,7 +101,7 @@ export function getAppleConfigureCmakeArgs({ triplet }: AppleConfigureOptions) {
114
101
`CMAKE_SYSTEM_NAME=${ systemName } ` ,
115
102
// Set the SDK path for the target platform
116
103
"-D" ,
117
- `CMAKE_OSX_SYSROOT=${ sdkPath } ` ,
104
+ `CMAKE_OSX_SYSROOT=${ XCODE_SDK_NAMES [ triplet ] } ` ,
118
105
// Set the target architecture
119
106
"-D" ,
120
107
`CMAKE_OSX_ARCHITECTURES=${ APPLE_ARCHITECTURES [ triplet ] } ` ,
0 commit comments