---
title: exclude
framework: swift-package-manager
role: symbol
role_heading: Instance Property
path: swift-package-manager/documentation/packagedescription/target/exclude
---

# exclude

The paths to source and resource files that you don’t want to include in the target.

## Declaration

```swift
var exclude: [String]
```

## Discussion

Discussion Excluded paths are relative to the target path. This property has precedence over the sources and resources properties.

## See Also

### Configuring File Locations

- [path](swift-package-manager/documentation/packagedescription/target/path.md)
- [sources](swift-package-manager/documentation/packagedescription/target/sources.md)
- [resources](swift-package-manager/documentation/packagedescription/target/resources.md)
- [Resource](swift-package-manager/documentation/packagedescription/resource.md)
- [publicHeadersPath](swift-package-manager/documentation/packagedescription/target/publicheaderspath.md)
