正确删除testtarget
发表时间:2020-10-19
发布人:葵宇科技
浏览次数:83
如今新建target时,Xcode(我用的是Xcode6)平日会默认随之建立一个test target,便利做测试用,如不雅想要删除之,可参考如下步调:
1、选择edit scheme
[img]http://img.blog.csdn.net/20150104164143229?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveHl4am4=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
2、此时会发明,在build标签下有2个target,个一一个就是同名的Tests target,留意此时是无法直接删除Tests target的(下面的减号是弗成点击的)
[img]http://img.blog.csdn.net/20150104164333677?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveHl4am4=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
3、选中Test标签,选中Tests target,点击减号,将该target删除
[img]http://img.blog.csdn.net/20150104164849906?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveHl4am4=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
4、此时可以看到,build标签下已经主动将Tests target移除,清爽了~
[img]http://img.blog.csdn.net/20150104165023256?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveHl4am4=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
5、随后便可以肆无顾忌的删除项目内所有包含Tests的内容,一身清爽~
[img]http://img.blog.csdn.net/20150104165322671?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveHl4am4=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
6、删除完毕之后,编译经由过程~
留意,其实关键是第三步,如不雅不履行第三步,直接干掉落工程中Tests相干的内容,也可以编译经由过程,不过会留下一如许的界面,对于有强迫症的仁攀来说(譬如我),会认为十分苦楚
[img]http://img.blog.csdn.net/20150104165636346?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveHl4am4=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center