---
title: processName
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/processinfo/processname
---

# processName

The name of the process.

## Declaration

```swift
var processName: String { get set }
```

## Discussion

Discussion The process name is used to register application defaults and is used in error messages. It does not uniquely identify the process. warning: User defaults and other aspects of the environment might depend on the process name, so be very careful if you change it. Setting the process name in this manner is not thread safe.

## See Also

### Accessing process information

- [arguments](foundation/processinfo/arguments.md)
- [environment](foundation/processinfo/environment.md)
- [globallyUniqueString](foundation/processinfo/globallyuniquestring.md)
- [isMacCatalystApp](foundation/processinfo/ismaccatalystapp.md)
- [isiOSAppOnMac](foundation/processinfo/isiosapponmac.md)
- [isiOSAppOnVision](foundation/processinfo/isiosapponvision.md)
- [processIdentifier](foundation/processinfo/processidentifier.md)
