XCode: Can I delete test target?

IosXcodexcode4.5

Ios Problem Overview


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?

Ios Solutions


Solution 1 - Ios

Select '.xcodeproj' file from project navigator, then select 'Show project and targets list' icon, select 'target' to delete and then click '-' at bottom

enter image description here

Solution 2 - Ios

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.

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1486548View Question on Stackoverflow
Solution 1 - IosAtul KaushikView Answer on Stackoverflow
Solution 2 - IosSwift Dev JournalView Answer on Stackoverflow