简体   繁体   中英

Tests don't work on Xcode 8, beta 2

When I run tests on my project in XCode, it builds, and then says Testing... which never ends.

When I use the stop button, the process stops with this text in the console:

*** If you believe this error represents a bug, please attach the log file at /Users/MY.NAME/Library/Developer/Xcode/DerivedData/APPNAME-gcsubmsjksdbljcswbefkgugjray/Logs/Test/C53D8988-3564-4C2B-A535-075D26D1E4A7/Session-APPNAMETests-2016-07-13_140704-t3DFd5.log

However, I am unable to run the tests again, and have to relaunch xcode to run them.

Is this an issue on XCode that may be known to the Apple developers?

EDIT

So, I figured, the simulator is not launching in time, and that fails the xcode to run the tests. It might be an installation bug with the simulator.

As I anticipated in my edit to the question the first time, XCode installation did not install the simulator correctly. I trashed the old installed version and reinstalled XCode. And now everything works fine.

Thanks for all the help.

我发现,如果我在模拟器上运行的不是iOS10,则测试永远不会运行,因此请使用iOS10。我认为向后兼容性并不重要。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM