From a8a5b2b4fa1458cf0f329e7af7c564b5c35fba3e Mon Sep 17 00:00:00 2001 From: Reece Williams <31943163+Reecepbcups@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:05:14 +0400 Subject: [PATCH] fix: MacOS strip debug info for proper runs (#1286) --- local-interchain/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/local-interchain/Makefile b/local-interchain/Makefile index 342ef86fd..841ece774 100644 --- a/local-interchain/Makefile +++ b/local-interchain/Makefile @@ -14,7 +14,11 @@ endif # if env IGNORE_STATIC_LINK=true, then only set the main version in ldflags # required so releasing the binary does not set the main directory incorrectly -ldflags = -X main.MakeFileInstallDirectory=$(CWD) -X main.Version=$(VERSION) +# - +# Stripping the debug info with -s -w fixes this so the binary +# is properly signed (MacOS sequoia + XCode 16 causes the binary to instantly die) +# ref: https://github.com/rollchains/spawn/issues/248 +ldflags = -X main.MakeFileInstallDirectory=$(CWD) -X main.Version=$(VERSION) -s -w ifeq ($(IGNORE_STATIC_LINK),true) ldflags = -X main.Version=$(VERSION) endif