Skip to content

Commit 28efafc

Browse files
committed
Fix Xcode 26
1 parent 6696c12 commit 28efafc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/generate-cocoa-bindings.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ if (!(Test-Path '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/
106106
$XcodePath = (xcode-select -p) -replace '/Contents/Developer$', ''
107107
$iPhoneSdkVersion = sharpie xcode -xcode $XcodePath -sdks | grep -o -m 1 'iphoneos\S*'
108108
Write-Output "iPhoneSdkVersion: $iPhoneSdkVersion"
109+
$iPhoneSdkPath = xcrun --show-sdk-path --sdk $iPhoneSdkVersion
110+
Write-Output "iPhoneSdkPath: $iPhoneSdkPath"
109111

110112
## Imports in the various header files are provided in the "new" style of:
111113
# `#import <Sentry/SomeHeader.h>`
@@ -168,7 +170,8 @@ sharpie bind -sdk $iPhoneSdkVersion `
168170
"$HeadersPath/Sentry-Swift.h" `
169171
"$PrivateHeadersPath/PrivateSentrySDKOnly.h" `
170172
-o $BindingsPath `
171-
-c -Wno-objc-property-no-attribute
173+
-c -Wno-objc-property-no-attribute `
174+
-F"$iPhoneSdkPath/System/Library/SubFrameworks" # needed for UIUtilities.framework in Xcode 26+
172175

173176
# Ensure backup path exists
174177
if (!(Test-Path $BackupPath))

0 commit comments

Comments
 (0)