Skip to content

Commit 0df2de9

Browse files
committed
Resolve TODO
1 parent f35e8c5 commit 0df2de9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/generate-cocoa-bindings.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ if (!(Test-Path '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/
102102
}
103103
}
104104

105-
# Get iPhone SDK version (TODO: fix iphoneos26+ compat)
106-
$iPhoneSdkVersion = sharpie xcode -sdks | grep -v 'iphoneos2' | grep -o -m 1 'iphoneos\S*'
105+
# Get iPhone SDK version
106+
$XcodePath = (xcode-select -p) -replace '/Contents/Developer$', ''
107+
$iPhoneSdkVersion = sharpie xcode -xcode $XcodePath -sdks | grep -o -m 1 'iphoneos\S*'
107108
Write-Output "iPhoneSdkVersion: $iPhoneSdkVersion"
108109

109110
## Imports in the various header files are provided in the "new" style of:

0 commit comments

Comments
 (0)