From 04ef18d39470235abac9c5d177ae24657a25a8c4 Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Tue, 3 Feb 2026 11:07:43 +0100 Subject: [PATCH] Exclude unhandled files When including DeviceKit as a dependency SPM warns about unhandled files: warning: 'devicekit': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target /Users/kp/Developer/clones/DeviceKit/Tests/Info.plist warning: 'devicekit': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target /Users/kp/Developer/clones/DeviceKit/Source/Device.swift.gyb --- Package.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 55e14ab..aae32f8 100644 --- a/Package.swift +++ b/Package.swift @@ -33,12 +33,14 @@ let package = Package( name: "DeviceKit", dependencies: [], path: "Source", - resources: [.process("PrivacyInfo.xcprivacy")] + exclude: ["Info.plist", "Device.swift.gyb"], + resources: [.process("PrivacyInfo.xcprivacy")], ), .testTarget( name: "DeviceKitTests", dependencies: ["DeviceKit"], path: "Tests", + exclude: ["Info.plist"], resources: [.process("../Source/PrivacyInfo.xcprivacy")] ) ],