Xcode UI tests - Lost connection to test manager service

前端 未结 2 1597
青春惊慌失措
青春惊慌失措 2021-01-01 18:35

Sometimes while running my UI tests, I get the following error Lost connection to test manager services. No logs or anything. Happens randomly. I would provide

相关标签:
2条回答
  • 2021-01-01 18:51

    The error appear for every async operations made in tests. It can be:

    1. Operation on non existing object
    2. dispatch_after
    3. Network operations with wrongly assign block handler
    0 讨论(0)
  • 2021-01-01 19:13

    I was getting the same error when running UI tests written in Swift. It turned out that the memory usage was increasing constantly when running a longer test (no memory release). When memory had been exhausted, the device "Lost connection to test manager services."

    The solution? Using 'autoreleasepool' in its Swift version, in proper places.

    0 讨论(0)
提交回复
热议问题