Skip to content

Commit

Permalink
Merge pull request #366 from bugsnag/PLAT-13303-ndebug
Browse files Browse the repository at this point in the history
Disable assertions on release build
  • Loading branch information
kstenerud authored Dec 19, 2024
2 parents e729a1f + 3fe67ca commit a64b691
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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",
Expand Down

0 comments on commit a64b691

Please sign in to comment.