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 😟.

Answered by DTS Engineer in 412375022

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"
Accepted Answer

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"
Share data between UITest and the App
 
 
Q