diff --git a/Package.swift b/Package.swift index e7791b2b5f6..e2c68c7eefe 100644 --- a/Package.swift +++ b/Package.swift @@ -2167,6 +2167,9 @@ let package = Package( "third_party/xxhash/xxhash.h", ], publicHeadersPath: "spm-core-include", + resources: [ + .copy("src/objective-c/PrivacyInfo.xcprivacy"), + ], cSettings: [ .headerSearchPath("./"), .headerSearchPath("include/"), @@ -2213,6 +2216,9 @@ let package = Package( "src/cpp/", ], publicHeadersPath: "spm-cpp-include", + resources: [ + .copy("src/objective-c/PrivacyInfo.xcprivacy"), + ], cSettings: [ .headerSearchPath("./"), .headerSearchPath("include/"), diff --git a/templates/Package.swift.template b/templates/Package.swift.template index acff5e5cf25..2c714749a95 100644 --- a/templates/Package.swift.template +++ b/templates/Package.swift.template @@ -55,6 +55,9 @@ % endfor ], publicHeadersPath: "spm-core-include", + resources: [ + .copy("src/objective-c/PrivacyInfo.xcprivacy"), + ], cSettings: [ .headerSearchPath("./"), .headerSearchPath("include/"), @@ -101,6 +104,9 @@ "src/cpp/", ], publicHeadersPath: "spm-cpp-include", + resources: [ + .copy("src/objective-c/PrivacyInfo.xcprivacy"), + ], cSettings: [ .headerSearchPath("./"), .headerSearchPath("include/"),