Skip to content

Commit 584ec1a

Browse files
authored
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
1 parent 354737a commit 584ec1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Package.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ let package = Package(
3333
name: "DeviceKit",
3434
dependencies: [],
3535
path: "Source",
36-
resources: [.process("PrivacyInfo.xcprivacy")]
36+
exclude: ["Info.plist", "Device.swift.gyb"],
37+
resources: [.process("PrivacyInfo.xcprivacy")],
3738
),
3839
.testTarget(
3940
name: "DeviceKitTests",
4041
dependencies: ["DeviceKit"],
4142
path: "Tests",
43+
exclude: ["Info.plist"],
4244
resources: [.process("../Source/PrivacyInfo.xcprivacy")]
4345
)
4446
],

0 commit comments

Comments
 (0)