Exclude unhandled files (#484)

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
This commit is contained in:
Klaas Pieter Annema
2026-03-02 17:36:53 +01:00
committed by GitHub
parent 354737a6c6
commit 584ec1ad55
+3 -1
View File
@@ -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")]
)
],