Thanks Karl Smith. In this article, I am fetching values from .json test data files that live in UITest target but if you're looking to pass values from main app target to UITest target then launch arguments can be a good option.
Set in UITest Target:
app.launchArguments.append("passMeToMainTarget")
Then in your app, you can fetch values from `ProcessInfo.processInfo.arguments` & maybe store in a singleton. Best to do this in AppDelegate.