From d6793191bd0ee40ea824ac6205430adc0f6ba3b4 Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Fri, 25 Oct 2024 09:21:56 +0400 Subject: [PATCH] fix: macos strip debug info so unsigned binaries work as expected --- 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