diff --git a/Package.swift b/Package.swift index 43c8fdc19..811a6399c 100644 --- a/Package.swift +++ b/Package.swift @@ -24,6 +24,8 @@ let package = Package( ], publicHeadersPath: "include", cSettings: [ + .define("NS_BLOCK_ASSERTIONS", .when(configuration: .release)), + .define("NDEBUG", .when(configuration: .release)), .headerSearchPath("."), .headerSearchPath("Breadcrumbs"), .headerSearchPath("Client"), @@ -53,6 +55,8 @@ let package = Package( path: "BugsnagNetworkRequestPlugin/BugsnagNetworkRequestPlugin", publicHeadersPath: "include", cSettings: [ + .define("NS_BLOCK_ASSERTIONS", .when(configuration: .release)), + .define("NDEBUG", .when(configuration: .release)), .headerSearchPath("."), .headerSearchPath("include/BugsnagNetworkRequestPlugin"), ]