---
title: launchEnvironment
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuiapplication/launchenvironment
---

# launchEnvironment

The environment variables that pass to the application on launch.

## Declaration

```swift
var launchEnvironment: [String : String] { get set }
```

## Discussion

Discussion If not modified, these are the environment variables that Xcode passes to the application on launch. You can change, add to, or remove the environment variables. Unlike with Process, you can modify the environment variables after the application launches. Such changes don’t affect the current launch session, but do take effect the next time the application launches.

## See Also

### Launching the application

- [launch()](xcuiautomation/xcuiapplication/launch().md)
- [launchArguments](xcuiautomation/xcuiapplication/launcharguments.md)
- [open(_:)](xcuiautomation/xcuiapplication/open(_:).md)
