XCode:我可以删除测试目标吗? [英] XCode: Can I delete test target?

查看:149
本文介绍了XCode:我可以删除测试目标吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我删除了应用的测试目标,会发生什么?这会影响我的其他目标吗?如何正确删除目标?

What would happen if I delete the test target for my app? Would this affect my other target? How would I go about properly deleting the target?

推荐答案

如果按测试目标,则表示单元测试目标,然后删除测试目标意味着您无法对项目中的代码进行单元测试。删除测试目标不会影响项目中的其他目标。但是,如果您想要安全,可以在删除测试目标之前拍摄项目的快照。选择文件>创建快照以拍摄快照。

If by test target, you mean a unit test target, then deleting the test target would mean you couldn't unit test the code in your project. Deleting the test target wouldn't affect the other targets in your project. But you can take a snapshot of your project before deleting the test target if you want to be safe. Choose File > Create Snapshot to take a snapshot.

要删除目标,请从项目导航器中选择项目以打开项目编辑器。从项目编辑器的左侧选择要删除的目标,然后按Delete键。

To delete a target select your project from the project navigator to open the project editor. Select the target you want to delete from the left side of the project editor and press the Delete key.

这篇关于XCode:我可以删除测试目标吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆