I\'ve tried setting attributes in the XCUIApplication instance, in my UI Tests setUp()
XCUIApplication
setUp()
let app = XCUIApplication() app.launchEnviro
I'm only aware of how this works in Objective-C
NSDictionary *environment = [[NSProcessInfo processInfo] environment];