In my case was because I had some animations (UIView.animate...) since the framework needs to wait for the app to be static.
What I did was UIView.setAnimationsEnabled(false) when running the app from the UI tests (you can send launchArguments or something)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: