Skip to content

Commit af1e632

Browse files
committed
fix(ios): link OneSignal SPM products explicitly
1 parent 08c2430 commit af1e632

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Package.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ let package = Package(
2121
dependencies: [
2222
.product(name: "Capacitor", package: "capacitor-swift-pm"),
2323
.product(name: "Cordova", package: "capacitor-swift-pm"),
24-
.product(name: "OneSignalFramework", package: "OneSignal-XCFramework")
24+
// InAppMessages and Location are separate library products in
25+
// OneSignal-XCFramework and must be linked explicitly under SPM,
26+
// otherwise their xcframeworks aren't loaded and the namespaces
27+
// are silent no-ops at runtime.
28+
.product(name: "OneSignalFramework", package: "OneSignal-XCFramework"),
29+
.product(name: "OneSignalInAppMessages", package: "OneSignal-XCFramework"),
30+
.product(name: "OneSignalLocation", package: "OneSignal-XCFramework"),
31+
.product(name: "OneSignalExtension", package: "OneSignal-XCFramework")
2532
],
2633
path: "ios/Sources/OneSignalCapacitorPlugin"
2734
)

0 commit comments

Comments
 (0)