I have UITests for my app and all the tests are running fine, but sometimes after executing a couple of tests, the other tests start failing due to Failed to terminate com.test.abc:3708 after 60.0s; state is still Running Foreground
(4)CreateUserUITest
Asked
Active
Viewed 2,277 times
5

Abhijeet Mallick
- 1,740
- 2
- 16
- 21
-
Thanks for sharing your results. We experience the same. – Ilias Karim May 15 '18 at 17:35
3 Answers
2
It looks like it's Xcode bug which was not solved still.
http://www.openradar.appspot.com/25548393
I tried to use @try { } @catch { }
but test was interrupted still if terminate()
was failed. So I see only one way to fix = delete app if it is not terminated on setUp()
point: https://stackoverflow.com/a/48715864/751932

Maxim Kholyavkin
- 4,463
- 2
- 37
- 82
1
Its caused by latest iOS 11.4. More info here: https://forums.developer.apple.com/thread/94054

Václav
- 990
- 1
- 12
- 28
1
As part of our investigation, it was cause by Rosetta emulator, even with latest Xcode.

Soheil Novinfard
- 1,358
- 1
- 16
- 43