From f601a7a3dfbb592d2286236fa829004a3b1ae52e Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 17 Oct 2021 23:31:07 -0700 Subject: [PATCH] Set CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO for release (#1974) This removes the com.apple.security.get-task-allow entitlement on helper executable tools and XPC Services. While this is not a big deal, I don't think we should distribute executables with this entitlement which allows debugging them (with SIP / hardened runtime on). Note notarization ought to reject this entitlement with library validation enabled, so people must be getting around this anyway (either by using Xcode's Archive / Export which automatically strips this entitlement, or re-signing Sparkle tools without preserving entitlements). --- Configurations/ConfigCommonRelease.xcconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/Configurations/ConfigCommonRelease.xcconfig b/Configurations/ConfigCommonRelease.xcconfig index 7b16ab2e..6b9a423e 100644 --- a/Configurations/ConfigCommonRelease.xcconfig +++ b/Configurations/ConfigCommonRelease.xcconfig @@ -16,3 +16,4 @@ DEAD_CODE_STRIPPING = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_WARN_UNINITIALIZED_AUTOS = YES COPY_PHASE_STRIP = NO +CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO