---
title: moduleName
framework: swift-package-manager
role: symbol
role_heading: Instance Property
path: swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/modulename
---

# moduleName

The name of the module produced by the target.

## Declaration

```swift
let moduleName: String
```

## Discussion

Discussion This is derived from the target name, though future Swift package manager versions may allow this to be customized.

## See Also

### Inspecting a Clang Source Module Target

- [id](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/id.md)
- [name](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/name.md)
- [kind](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/kind.md)
- [directoryURL](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/directoryurl.md)
- [dependencies](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/dependencies.md)
- [headerSearchPaths](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/headersearchpaths.md)
- [preprocessorDefinitions](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/preprocessordefinitions.md)
- [directory](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/directory.md)
- [publicHeadersDirectory](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/publicheadersdirectory.md)
- [publicHeadersDirectoryURL](swift-package-manager/documentation/packageplugin/clangsourcemoduletarget/publicheadersdirectoryurl.md)
