From 0909c9fd04dfe114fb356336e34c2bd9664242d5 Mon Sep 17 00:00:00 2001 From: Brad Groux <3053586+BradGroux@users.noreply.github.com> Date: Sat, 9 May 2026 04:52:27 -0500 Subject: [PATCH] fix build without local signing certificate --- CONTRIBUTING.md | 8 +++++++- Makefile | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 00e10c8..59c2c2f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ You'll need macOS 15+ and Xcode with Swift 6. Clone the repo and run: make build ``` -That's it. Dependencies are managed through SPM and resolve automatically. +That's it. Dependencies are managed through SPM and resolve automatically. The default debug build is unsigned so contributors can build the app without a local Apple Developer certificate or the maintainer's development team configured in Xcode. To build and launch in one step: @@ -18,6 +18,12 @@ To build and launch in one step: make dev ``` +If you need to test a signed debug build locally, pass your own Apple development team: + +```bash +make build DEBUG_CODE_SIGNING_ALLOWED=YES DEBUG_DEVELOPMENT_TEAM=YOURTEAMID +``` + ## Making changes 1. Fork the repo and create a branch from `main`. diff --git a/Makefile b/Makefile index 16e020e..e25044a 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,16 @@ BUILD_DIR = .build VERSION = $(shell grep MARKETING_VERSION Config.xcconfig | cut -d'=' -f2 | tr -d ' ') RELEASE_DIR = $(BUILD_DIR)/Build/Products/Release DEBUG_DIR = $(BUILD_DIR)/Build/Products/Debug +DEBUG_CODE_SIGNING_ALLOWED ?= NO +DEBUG_DEVELOPMENT_TEAM ?= +DEBUG_SIGNING_OVERRIDES = CODE_SIGNING_ALLOWED=$(DEBUG_CODE_SIGNING_ALLOWED) DEVELOPMENT_TEAM=$(DEBUG_DEVELOPMENT_TEAM) .PHONY: build release run dev dmg dmg-release format clean help install uninstall changelog tag appcast publish all: help build: - @xcodebuild -project Reframed.xcodeproj -scheme $(SCHEME) -configuration Debug build -quiet -derivedDataPath $(BUILD_DIR) -destination '$(DESTINATION)' + @xcodebuild -project Reframed.xcodeproj -scheme $(SCHEME) -configuration Debug build -quiet -derivedDataPath $(BUILD_DIR) -destination '$(DESTINATION)' $(DEBUG_SIGNING_OVERRIDES) release: @xcodebuild -project Reframed.xcodeproj -scheme $(SCHEME) -configuration Release build -quiet -derivedDataPath $(BUILD_DIR) -destination 'generic/platform=macOS' ARCHS="arm64 x86_64" ONLY_ACTIVE_ARCH=NO