Share data between UITest and the App

Is there a way to have a IPC between an App and the UITestRunner app?

I've tried to enable the AppGroup for UITest but without luck 😟.

Accepted Reply

Yeah, an App Group won’t work because your test target generates a bundle that’s loaded into the test runner, meaning that you don’t get control over the test running’s entitlements.

I suspect your best option here is to use TCP.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

Yeah, an App Group won’t work because your test target generates a bundle that’s loaded into the test runner, meaning that you don’t get control over the test running’s entitlements.

I suspect your best option here is to use TCP.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"