---
title: init()
framework: foundation
role: symbol
role_heading: Initializer
path: foundation/process/init()
---

# init()

Returns an initialized process object with the environment of the current process.

## Declaration

```swift
init()
```

## Return Value

Return Value An initialized process object with the environment of the current process.

## Discussion

Discussion If you need to modify the environment of a process, use alloc and init, and then set up the environment before launching the new process. Otherwise, just use the class method run(_:arguments:terminationHandler:) to create and run the process.

## See Also

### Creating and initializing a process

- [run(_:arguments:terminationHandler:)](foundation/process/run(_:arguments:terminationhandler:).md)
