From 3fe67ca58a525edc24a5f809109a7c4f959d126d Mon Sep 17 00:00:00 2001 From: Karl Stenerud Date: Thu, 19 Dec 2024 12:30:40 +0100 Subject: [PATCH] Add NDEBUG to compiler settings --- Package.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index bac2ea57..42300abb 100644 --- a/Package.swift +++ b/Package.swift @@ -26,6 +26,10 @@ let package = Package( resources: [ .copy("resources/PrivacyInfo.xcprivacy") ], + cSettings: [ + .define("NS_BLOCK_ASSERTIONS", .when(configuration: .release)), + .define("NDEBUG", .when(configuration: .release)) + ], linkerSettings: [ .linkedFramework("SystemConfiguration"), .linkedFramework("UIKit"), @@ -35,7 +39,11 @@ let package = Package( .target( name: "BugsnagPerformanceSwift", dependencies: ["BugsnagPerformance"], - path: "Sources/BugsnagPerformanceSwift" + path: "Sources/BugsnagPerformanceSwift", + cSettings: [ + .define("NS_BLOCK_ASSERTIONS", .when(configuration: .release)), + .define("NDEBUG", .when(configuration: .release)) + ] ), .target( name: "BugsnagPerformanceSwiftUI",