Anyone successful in debugging unit tests for iPhone?

后端 未结 5 1884
Happy的楠姐
Happy的楠姐 2020-12-25 09:09

I found examples on how to debug your unit test in Cocoa or the ADC page here. But I can\'t get the debugging to work for an iPhone app target. I can get the tests up and ru

5条回答
  •  一生所求
    2020-12-25 09:25

    In Xcode 4, you can set breakpoints in your unit tests.

    1. Create a new project with "include unit tests" checked.
    2. Put a breakpoint in the failing unit test.
    3. Press Command-U to test.

提交回复
热议问题