Sets the environment for the receiver.
- macOS 10.0+
A dictionary of environment variable values whose keys are the variable names.
If this method isn’t used, the environment is inherited from the process that created the receiver. This method raises an
NSInvalid if the receiver has already been launched.