@@ -4,7 +4,7 @@ Set-StrictMode -Version Latest
44$ErrorActionPreference = ' Stop'
55
66$RootPath = (Get-Item $PSScriptRoot ).Parent.FullName
7- $CocoaSdkPath = " $RootPath /modules/sentry-cocoa/Sentry.framework "
7+ $CocoaSdkPath = " $RootPath /modules/sentry-cocoa"
88$BindingsPath = " $RootPath /src/Sentry.Bindings.Cocoa"
99$BackupPath = " $BindingsPath /obj/_unpatched"
1010
@@ -101,7 +101,7 @@ Write-Output "iPhoneSdkVersion: $iPhoneSdkVersion"
101101# ...instead of:
102102# `#import "SomeHeader.h"`
103103# This causes sharpie to fail resolve those headers
104- $filesToPatch = Get-ChildItem - Path " $CocoaSdkPath /Headers" - Filter * .h - Recurse | Select-Object - ExpandProperty FullName
104+ $filesToPatch = Get-ChildItem - Path " $CocoaSdkPath /Carthage/ Headers" - Filter * .h - Recurse | Select-Object - ExpandProperty FullName
105105foreach ($file in $filesToPatch )
106106{
107107 if (Test-Path $file )
@@ -116,7 +116,7 @@ foreach ($file in $filesToPatch)
116116 Write-Host " File not found: $file "
117117 }
118118}
119- $privateHeaderFile = " $CocoaSdkPath /PrivateHeaders/PrivatesHeader.h"
119+ $privateHeaderFile = " $CocoaSdkPath /Carthage/ PrivateHeaders/PrivatesHeader.h"
120120if (Test-Path $privateHeaderFile )
121121{
122122 $content = Get-Content - Path $privateHeaderFile - Raw
133133# Generate bindings
134134Write-Output ' Generating bindings with Objective Sharpie.'
135135sharpie bind - sdk $iPhoneSdkVersion `
136- - scope " $CocoaSdkPath " `
137- " $CocoaSdkPath /Headers/Sentry.h" `
138- " $CocoaSdkPath /PrivateHeaders /PrivateSentrySDKOnly.h" `
136+ - scope " $CocoaSdkPath /Carthage/Headers " `
137+ " $CocoaSdkPath /Carthage/ Headers/Sentry.h" `
138+ " $CocoaSdkPath /Carthage/Headers /PrivateSentrySDKOnly.h" `
139139 - o $BindingsPath `
140140 - c - Wno- objc- property- no- attribute
141141
0 commit comments