Skip to content

Commit 913cdfd

Browse files
committed
fix(objc): Keep SentryCppHelper in initial targets array
SentryCppHelper must remain in the initial targets array because the binary distribution products (Sentry, SentrySwiftUI, etc.) depend on it. Moving it to the compile-from-source section broke those binary products. The target can be safely referenced by both binary and source products.
1 parent e4b4486 commit 913cdfd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

[email protected]

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ var targets: [Target] = [
5555
.linkedFramework("Sentry")
5656
]
5757
),
58+
.target(
59+
name: "SentryCppHelper",
60+
path: "Sources/SentryCppHelper",
61+
linkerSettings: [
62+
.linkedLibrary("c++")
63+
]
64+
),
5865
.target(name: "SentryDistribution", path: "Sources/SentryDistribution"),
5966
.testTarget(name: "SentryDistributionTests", dependencies: ["SentryDistribution"], path: "Sources/SentryDistributionTests")
6067
]
@@ -110,13 +117,6 @@ targets += [
110117
cSettings: [
111118
.headerSearchPath("Public")
112119
]
113-
),
114-
.target(
115-
name: "SentryCppHelper",
116-
path: "Sources/SentryCppHelper",
117-
linkerSettings: [
118-
.linkedLibrary("c++")
119-
]
120120
)
121121
]
122122

0 commit comments

Comments
 (0)