@@ -57,7 +57,7 @@ ifeq ($(PLATFORM),windows)
5757else ifeq ($(PLATFORM),macos)
5858 TARGET := $(DIST_DIR ) /cloudsync.dylib
5959 LDFLAGS += -arch x86_64 -arch arm64 -framework Security -dynamiclib -undefined dynamic_lookup
60- # macOS-specific flags
60+ TEST_FLAGS += -framework Security
6161 CFLAGS += -arch x86_64 -arch arm64
6262else ifeq ($(PLATFORM),android)
6363 # Use Android NDK's Clang compiler, the user should set the CC
@@ -73,13 +73,13 @@ else ifeq ($(PLATFORM),ios)
7373 TARGET := $(DIST_DIR ) /cloudsync.dylib
7474 SDK := -isysroot $(shell xcrun --sdk iphoneos --show-sdk-path) -miphoneos-version-min=11.0
7575 LDFLAGS += -framework Security -framework CoreFoundation -dynamiclib $(SDK )
76- # iOS-specific flags
76+ TEST_FLAGS += -framework Security
7777 CFLAGS += -arch arm64 $(SDK )
7878else ifeq ($(PLATFORM),isim)
7979 TARGET := $(DIST_DIR ) /cloudsync.dylib
8080 SDK := -isysroot $(shell xcrun --sdk iphonesimulator --show-sdk-path) -miphonesimulator-version-min=11.0
8181 LDFLAGS += -arch x86_64 -arch arm64 -framework Security -framework CoreFoundation -dynamiclib $(SDK )
82- # iphonesimulator-specific flags
82+ TEST_FLAGS += -framework Security
8383 CFLAGS += -arch x86_64 -arch arm64 $(SDK )
8484else # linux
8585 TARGET := $(DIST_DIR ) /cloudsync.so
0 commit comments