From 839b07e3913b69d663d66b39efa1e6a4dc1ee77c Mon Sep 17 00:00:00 2001 From: Daniel Barden Date: Mon, 8 Apr 2024 15:24:57 -0300 Subject: [PATCH] Fixes the "Umbrella header for module Sift cannot be found" Creates a `include` header that will contain the headers that should be distributed. This avoid copying all the headers and solves the compile time error shown in https://github.com/SiftScience/sift-ios/issues/114 --- Package.swift | 3 +-- Sift/include/Sift.h | 1 + Sift/include/SiftCompatibility.h | 1 + Sift/include/SiftEvent.h | 1 + Sift/include/SiftQueueConfig.h | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) create mode 120000 Sift/include/Sift.h create mode 120000 Sift/include/SiftCompatibility.h create mode 120000 Sift/include/SiftEvent.h create mode 120000 Sift/include/SiftQueueConfig.h diff --git a/Package.swift b/Package.swift index dd99064..3d9563d 100644 --- a/Package.swift +++ b/Package.swift @@ -25,8 +25,7 @@ let package = Package( name: "Sift", dependencies: [], path: "Sift", - exclude: ["Info.plist", "README.md"], - publicHeadersPath: "."), + exclude: ["Info.plist", "README.md"] .testTarget( name: "sift-iosTests", dependencies: ["sift-ios"]), diff --git a/Sift/include/Sift.h b/Sift/include/Sift.h new file mode 120000 index 0000000..5cf8332 --- /dev/null +++ b/Sift/include/Sift.h @@ -0,0 +1 @@ +../Sift.h \ No newline at end of file diff --git a/Sift/include/SiftCompatibility.h b/Sift/include/SiftCompatibility.h new file mode 120000 index 0000000..1f3e9bb --- /dev/null +++ b/Sift/include/SiftCompatibility.h @@ -0,0 +1 @@ +../SiftCompatibility.h \ No newline at end of file diff --git a/Sift/include/SiftEvent.h b/Sift/include/SiftEvent.h new file mode 120000 index 0000000..afb08cb --- /dev/null +++ b/Sift/include/SiftEvent.h @@ -0,0 +1 @@ +../SiftEvent.h \ No newline at end of file diff --git a/Sift/include/SiftQueueConfig.h b/Sift/include/SiftQueueConfig.h new file mode 120000 index 0000000..33bf995 --- /dev/null +++ b/Sift/include/SiftQueueConfig.h @@ -0,0 +1 @@ +../SiftQueueConfig.h \ No newline at end of file