From eef84080a88335bc20ec3cb33a6847e3cffb3a5e Mon Sep 17 00:00:00 2001 From: visualfc Date: Sat, 14 Nov 2026 16:57:55 +0800 Subject: [PATCH] liteide: drop dyld environment variable entitlement Qt Creator injects DYLD_* which still trips ImageIO on Apple Silicon even with Hardened Runtime. Qt is linked by absolute Homebrew paths, so DYLD is not needed. --- liteidex/src/liteide/LiteIDE.entitlements | 2 -- liteidex/src/liteide/liteide.pro | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/liteidex/src/liteide/LiteIDE.entitlements b/liteidex/src/liteide/LiteIDE.entitlements index c7b92d69..6883e4a2 100644 --- a/liteidex/src/liteide/LiteIDE.entitlements +++ b/liteidex/src/liteide/LiteIDE.entitlements @@ -2,8 +2,6 @@ - com.apple.security.cs.allow-dyld-environment-variables - com.apple.security.cs.allow-unsigned-executable-memory com.apple.security.cs.disable-library-validation diff --git a/liteidex/src/liteide/liteide.pro b/liteidex/src/liteide/liteide.pro index cf6cea83..a87a4be7 100644 --- a/liteidex/src/liteide/liteide.pro +++ b/liteidex/src/liteide/liteide.pro @@ -47,6 +47,9 @@ win32 { QMAKE_INFO_PLIST = Info.plist # Apple Silicon crashes in CoreText/ImageIO when drawing emoji unless the # process is signed with the Hardened Runtime (EXC_ARM_DA_ALIGN / 0xbad4007). + # Do not grant allow-dyld-environment-variables: Qt Creator injects DYLD_* + # and that still trips ImageIO even with the runtime flag. Qt is linked by + # absolute Homebrew paths, so DYLD is not needed. QMAKE_POST_LINK += codesign --force --deep --sign - --options runtime --entitlements $$shell_quote($$PWD/LiteIDE.entitlements) $$shell_quote($$IDE_APP_PATH/$${IDE_APP_TARGET}.app) } else { target.path = $$BINPREFIX