Failed to get matching snapshots: Unable to perform work on main run loop

I am getting this error: Failed to get matching snapshots: Unable to perform work on main run loop, process main thread busy for 5.0s - recommend retry by client, and then simulator stalls doesn't do anything. Can someone help me with this