Test phase is grayed out in XCode 4

后端 未结 2 1494
迷失自我
迷失自我 2020-12-29 19:17

I\'ve been using GHUnit in my project because the built in unit testing was so terrible in XCode 3.

However, now that they\'ve been fixed in XCode 4, I want to switc

相关标签:
2条回答
  • 2020-12-29 20:01

    You probably need to make sure that your active scheme is pointing at the right target (your test bundle).

    0 讨论(0)
  • 2020-12-29 20:21

    You need to edit the scheme for your main application target.

    • Click the scheme selector
    • Click Edit scheme
    • Make sure the scheme you use for your actual application is selected
    • In the sidebar, you have "Build", "Run", "Test", etc. Click the "Test" entry.
    • In the table view, click the + at the bottom and select your test target, click add.

    The "Test" option in the product menu is no longer grayed out.

    0 讨论(0)
提交回复
热议问题