From 858dbf42de5e4b876e31805dfd8b7d4e6b9d8625 Mon Sep 17 00:00:00 2001 From: Jonathan Kaufman Date: Wed, 14 Aug 2024 13:24:44 -0700 Subject: [PATCH] Fix SPM NS_BLOCK_ASSERTIONS on release --- Package.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 103c0f761..cc7aeb27a 100644 --- a/Package.swift +++ b/Package.swift @@ -45,7 +45,10 @@ let package = Package( name: "AppAuthCore", path: "Sources/AppAuthCore", resources: [.copy("Resources/PrivacyInfo.xcprivacy")], - publicHeadersPath: "" + publicHeadersPath: "", + cSettings: [ + .define("NS_BLOCK_ASSERTIONS", to: "1", .when(configuration: .release)), + ] ), .target( name: "AppAuth", @@ -58,6 +61,7 @@ let package = Package( .headerSearchPath("iOS"), .headerSearchPath("macOS"), .headerSearchPath("macOS/LoopbackHTTPServer"), + .define("NS_BLOCK_ASSERTIONS", to: "1", .when(configuration: .release)), ] ), .target(