Xcode Unit Tests: Xcode doesn't stop at breakpoints Xcode Unit Tests: Xcode doesn't stop at breakpoints xcode xcode

Xcode Unit Tests: Xcode doesn't stop at breakpoints


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.

enter image description here


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!