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

# sources

The source files in this target.

## Declaration

```swift
var sources: [String]?
```

## Discussion

Discussion If this property is nil, Swift Package Manager includes all valid source files in the target’s path and treats specified paths as relative to the target’s path. A path can be a path to a directory or an individual source file. In case of a directory, Swift Package Manager searches for valid source files recursively inside it.

## See Also

### Configuring File Locations

- [path](swift-package-manager/documentation/packagedescription/target/path.md)
- [exclude](swift-package-manager/documentation/packagedescription/target/exclude.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)
