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