问题
Using Xcode 6.3 Beta 2 with Units Tests I have the following problem:
When I do unit testing the breakpoints in the unit-test module work but the break codes in the code under test don't are ignored.
Any ideas?
回答1:
I had the same issue and the reason was the scheme settings:
1.- Edit your scheme
2.- Choose "Test" in the left panel
3.- Check the "Debug executable" option
That was all.
回答2:
Simple point to check even if this post is quite old: Does your Test-Method start with the prefix "test"?
Omitting the prefix doesn't produce a warning and Xcode simply doesn't execute the method any more.
This can look like Xcode doesn't stop at your breakpoint - nevertheless Xcode doesn't execute the method at all!
来源:https://stackoverflow.com/questions/28962166/xcode-unit-tests-xcode-doesnt-stop-at-breakpoints