From 94e1da9dd16cf27145a355ca45d212f3cbd2b772 Mon Sep 17 00:00:00 2001 From: Ricardo Colombo Oliveira Date: Thu, 17 Sep 2026 13:30:41 +0200 Subject: [PATCH 1/3] build: only regenerate Cocoa bindings when their inputs change --- src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj b/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj index 3bdf984a2e..9b84b4126d 100644 --- a/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj +++ b/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj @@ -17,7 +17,9 @@ See getsentry/sentry-dotnet#5492. --> $(SentryCocoaCache)Carthage\Build-$(TargetPlatformIdentifier)\SentryObjC-Dynamic.xcframework - ../../scripts/generate-cocoa-bindings.ps1;../../.config/dotnet-tools.json;$(SentryCocoaCache)Carthage/.built-from-sha;$(SentryCocoaCache)Carthage/Headers/**/*.h + + ../../scripts/generate-cocoa-bindings.ps1;../../.config/dotnet-tools.json;$(SentryCocoaCache)Carthage/.built-from-sha $([MSBuild]::NormalizePath($(MSBuildThisFileDirectory), $(SentryCocoaCache).git)) From 8fadb9d009ab397103adbe665ca7b01b90b682e0 Mon Sep 17 00:00:00 2001 From: Ricardo Colombo Oliveira Date: Thu, 17 Sep 2026 14:19:19 +0200 Subject: [PATCH 2/3] build: Regenerate Cocoa bindings when the patch script changes --- src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj b/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj index 9b84b4126d..05d0cbbe0b 100644 --- a/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj +++ b/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj @@ -19,7 +19,7 @@ $(SentryCocoaCache)Carthage\Build-$(TargetPlatformIdentifier)\SentryObjC-Dynamic.xcframework - ../../scripts/generate-cocoa-bindings.ps1;../../.config/dotnet-tools.json;$(SentryCocoaCache)Carthage/.built-from-sha + ../../scripts/generate-cocoa-bindings.ps1;../../scripts/patch-cocoa-bindings.cs;../../.config/dotnet-tools.json;$(SentryCocoaCache)Carthage/.built-from-sha $([MSBuild]::NormalizePath($(MSBuildThisFileDirectory), $(SentryCocoaCache).git)) From b4a266e7f74bb722b4e7a839860ee615e6734353 Mon Sep 17 00:00:00 2001 From: Ricardo Colombo Oliveira Date: Fri, 18 Sep 2026 07:51:41 +0200 Subject: [PATCH 3/3] build: Remove unnecessary comments --- src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj b/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj index 05d0cbbe0b..a22588c45f 100644 --- a/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj +++ b/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj @@ -17,8 +17,6 @@ See getsentry/sentry-dotnet#5492. --> $(SentryCocoaCache)Carthage\Build-$(TargetPlatformIdentifier)\SentryObjC-Dynamic.xcframework - ../../scripts/generate-cocoa-bindings.ps1;../../scripts/patch-cocoa-bindings.cs;../../.config/dotnet-tools.json;$(SentryCocoaCache)Carthage/.built-from-sha $([MSBuild]::NormalizePath($(MSBuildThisFileDirectory), $(SentryCocoaCache).git))