Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Completely remove XCode Target

Tags:

xcode

ios

How do I completely remove an XCode target such that if I create a new target with the same name, none of the previous files/settings associated with it will remain?

like image 413
Ralfonso Avatar asked Jul 16 '12 22:07

Ralfonso


People also ask

How do I completely delete Xcode project?

With Xcode closed, locate that project folder in the Finder, move it to the trash, then empty the trash.

How do I cancel my target membership?

If you want to change or cancel your subscription, you can do so at any time by logging into your My Account on Target.com, selecting Subscriptions and then selecting the subscription you want to change or cancel. Your subscription will remain in effect until it is canceled.

How do I delete Xcode history?

Choose Show in Finder.) In Xcode, remove the deleted project from the menu. (Go to File > Open Recent > Clear Menu. This will clear all of your recent projects from this menu and the startup menu.)

How do I delete all files in Xcode?

In Xcode 2.4, you select the file in the main project window and either press the delete/backspace button, or control-click and select Delete from the pop-up menu. It then asks if you want to delete the file and all references to it, or just the references, leaving the file still present in the project folder.


1 Answers

I think you'll have to make a lot of manual work to do that:

  • open .xcodeproj with alt-click - Show Package Content
  • open project.pbxproj with the text editor Now look for /* Begin PBXNativeTarget section */, you'll find the list of the targets below. Here comes the part which will likely make you create the new project - there're so many cross-references by identifiers to be analyzed. You'll have to find yourself what you want to remove there.
  • remove xcuserdata to clear users preferences for the project
like image 169
A-Live Avatar answered Sep 30 '22 15:09

A-Live