I am able to reproduce this also in a minimal example.
Here is my setup:
a Hello World app and a UI test target.
a Test Plan which executes the UI test target
test plan configures application language as German for sanity testing whether changing the test configuration via the test plan in general works -> this works perfectly
test plan configures launch arguments and Environment variables in the shared settings "Arguments passed on launch"
In the ContentView of the app I try to access these values via ProcessInfo:
print(ProcessInfo.processInfo.arguments)
print(ProcessInfo.processInfo.environment)
Now I run the test plan
Expected:
my custom launch arguments appear in arguments
my custom env vars appear in environment
Actual: none of them appear.
What am I doing wrong here?