Remove unit testing from Xcode project?

后端 未结 2 1753
花落未央
花落未央 2020-12-24 11:09

When I created my iOS project in Xcode 5 I clicked the option to add testing to the project. Is it possible to remove all that testing stuff, just as though I hadn\'t click

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 11:35

    Xcode 7+

    Click your project name in the Project Navigator. Then select your Tests target. Click the minus (-) button at the bottom to delete it. (Select everywhere in red in the image below.)

    As mentioned in a comment earlier, it is a good idea to do Unit Testing (and UI testing) in your projects. So, if you want to add them back in then just click the plus (+) button.

    See also

    • How to do a Unit Test in Xcode
    • Xcode UI Test example

提交回复
热议问题