How do you completely delete projects in Xcode?

核能气质少年 提交于 2019-12-20 17:26:25

问题


So if I go into my selected save folder for my projects and delete my project it no longer shows up in Xcode. However I can still find some other files if I look under my user name/Library/Developer/Xcode/DerivedData. There are other files Xcode creates and I'm afraid if I make, and delete a bunch of projects, it is just gonna clutter my Mac with a mess of unneeded files. So how do I completely remove a project in Xcode? Appreciate the help.


回答1:


Xcode 9

  • In Finder, delete the project folder. (If you don't know where it is, open the project in Xcode and right click on project name in the Project Navigator. 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.)



回答2:


For Xcode 4, you can go to the Organizer by clicking the button at the top right, and then you'll see your projects. Right click the one you want to remove, and choose "Remove from Organizer..." This will remove all the associated data. I don't know if this is an option in previous versions of Xcode.




回答3:


Solution for Xcode 7.3

To delete Xcode project:

  • Locate the project directory in finder, right-click, and select Move to Trash

To delete Xcode project data:

  • (From the Xcode welcome screen) Go to Window > Projects, select the project, then click Delete next to the derived data and/or snapshots
  • Note: deleting project data can free 50+ MB even from simple projects!



回答4:


The easiest way I found to do this in Xcode 9.1 was to open Xcode (which may "open" only as an icon on the dock if there are no current projects) and select 'Window' from the Xcode application menu.

Select the 'Welcome to Xcode' option, then click on 'Open another project...' in the right pane of the window. This should take you to the root of your projects folder in a Finder window. (Mine end up in /Applications by default.) From there you should be able to select the project name and 'Move to Trash'. Empty your trash to get rid of it entirely.




回答5:


  1. Physical deletion : Go to where project folder is. Simply delete folder By default it is Documents/[Project name]

  2. To remove as start-up choice list : On Terminal: open /Applications/Xcode.app Then File -> Open Recent -> Clear Menu

Cheers




回答6:


/Users/User/Library/Developer/Xcode/DerivedData/ProjectName-UI

this is the build folder for your project. You can delete it in finder or in Xcode by pressing Command-Option-Shift-K before delete the project itself.




回答7:


For Xcode Version 8.2 (8C38), you can remove the projects completely (project name in Xcode, programs, data, etc.) one by one by doing the following: [Note: the instructions are not for just remove the project names from the Welcome Window]

Launch the Xocde and wait until the Welcome window is displayed. The projects will be shown on the right hand side (see below) Xcode Welcome Window

Right click the project you want to remove completely and a pop window [Show in Folder] jumps out; selec it to find out where is the project in the [Finder] (see below) Find the project folder

Right click the project folder in the Finder to find it’s path through [Get Info]; use path in the Info window to go to the parent folder, and go to there[Locate the project folder path][3]

Right click the Project Folder (e.g. DemoProject01) and Porject file (DemoProject01.xcodeproj) and select [Move to Trash] ; you will see that (a) the folder in finder is removed AND (b) the Project in the Xcode Welcome Window’s Project List is removed.




回答8:


To Delete XCode Projects in Ver.7.3 you must:

  • Open up the Project you would like to delete
  • Select the 'Window' option from the Active App Menu for Mac programs. The one where you find - File, Edit, View etc..
  • Select the Projects option
  • Then you will see a full list of projects
  • Highlight the ones you want to remove - Shift + Click >>> Click
  • Then Right Click and Select Remove projects


来源:https://stackoverflow.com/questions/7277364/how-do-you-completely-delete-projects-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!