From 9de17dbcbe4bbd1d588316049f94cc70fed1744e Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 1 Feb 2026 20:00:39 -0500 Subject: [PATCH] Fix bridging headers --- xcode/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xcode/Makefile b/xcode/Makefile index d3295f0..64500eb 100644 --- a/xcode/Makefile +++ b/xcode/Makefile @@ -13,7 +13,7 @@ ios-hw: clean CC=$(PWD)/clangwrap.sh \ CGO_CFLAGS="-fembed-bitcode" \ go build -buildmode=c-archive -tags ios -o $(BUILD_DIR)/cmutton-ios-hw.a .. - echo '#import "types.h"\n#import "cmutton.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-ios-hw.h + echo '#import "types.h"\n#import "cmutton-ios-hw.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-ios-hw.h cp ../types.h $(BUILD_DIR)/types.h ios-sim: clean @@ -25,7 +25,7 @@ ios-sim: clean SDK=iphonesimulator \ CC=$(PWD)/clangwrap.sh \ go build -buildmode=c-archive -tags ios -o $(BUILD_DIR)/cmutton-ios-sim.a .. - echo '#import "types.h"\n#import "cmutton.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-ios-sim.h + echo '#import "types.h"\n#import "cmutton-ios-sim.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-ios-sim.h cp ../types.h $(BUILD_DIR)/types.h macos: clean @@ -36,7 +36,7 @@ macos: clean GOARM64=v8.4,crypto \ SDK=macosx \ go build -buildmode=c-archive -o $(BUILD_DIR)/cmutton-macos.a .. - echo '#import "types.h"\n#import "cmutton.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-macos.h + echo '#import "types.h"\n#import "cmutton-macos.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-macos.h cp ../types.h $(BUILD_DIR)/types.h apple: clean ios-hw ios-sim macos