xcode 你如何在Xcode中完全删除项目?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7277364/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:05:23  来源:igfitidea点击:

How do you completely delete projects in Xcode?

xcodedelete-fileprojects

提问by Josh G

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.

因此,如果我进入我为我的项目选择的保存文件夹并删除我的项目,它不再显示在 Xcode 中。但是,如果我查看我的用户名/Library/Developer/Xcode/DerivedData,我仍然可以找到一些其他文件。Xcode 创建了其他文件,我担心如果我创建并删除一堆项目,它只会让我的 Mac 堆满一堆不需要的文件。那么如何在 Xcode 中完全删除一个项目呢?感谢帮助。

回答by Suragch

Xcode 9

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.)
  • 在 Finder 中,删除项目文件夹。(如果您不知道它在哪里,请在 Xcode 中打开该项目并在 Project Navigator 中右键单击项目名称。选择Show in Finder。)
  • 在 Xcode 中,从菜单中删除已删除的项目。(转到“文件”>“打开最近的”>“清除菜单”。这将从该菜单和启动菜单中清除您最近的所有项目。)

回答by Hyman

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.

对于 Xcode 4,您可以通过单击右上角的按钮转到管理器,然后您将看到您的项目。右键单击要删除的数据,然后选择“从管理器中删除...”这将删除所有相关数据。我不知道这是否是以前版本的 Xcode 中的一个选项。

回答by Andrew Kirna

Solution for Xcode 7.3

Xcode 7.3 解决方案

To delete Xcode project:

要删除 Xcode 项目:

  • Locate the project directory in finder, right-click, and select Move to Trash
  • 在finder中找到项目目录,右键单击,然后选择移至废纸篓

To delete Xcode project data:

要删除 Xcode 项目数据:

  • (From the Xcode welcome screen) Go to Window > Projects, select the project, then click Deletenext to the derived data and/or snapshots
  • Note: deleting project data can free 50+ MB even from simple projects!
  • (从 Xcode 欢迎屏幕)转到Window > Projects,选择项目,然后单击派生数据和/或快照旁边的删除
  • 注意:即使是简单的项目,删除项目数据也可以释放 50+ MB!

回答by pebalm

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.

我发现在 Xcode 9.1 中执行此操作的最简单方法是打开 Xcode(如果没有当前项目,它可能仅作为扩展坞上的图标“打开”)并从 Xcode 应用程序菜单中选择“窗口”。

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.

选择“欢迎使用 Xcode”选项,然后单击窗口右侧窗格中的“打开另一个项目...”。这应该会将您带到 Finder 窗口中项目文件夹的根目录。(默认情况下,我的最终在 /Applications 中。)从那里您应该能够选择项目名称和“移至垃圾箱”。清空您的垃圾箱以彻底清除它。

回答by Nurlan

  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.appThen File -> Open Recent -> Clear Menu

  1. 物理删除:转到项目文件夹所在的位置。只需删除文件夹默认情况下它是Documents/[Project name]

  2. 删除作为启动选择列表:在终端上:open /Applications/Xcode.app然后 File -> Open Recent -> Clear Menu

Cheers

干杯

回答by DronNick

/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.

这是您项目的构建文件夹。您可以在 finder 或 Xcode 中删除它,方法是在删除项目本身之前按 Command-Option-Shift-K。

回答by Dan Haddock

To Delete XCode Projects in Ver.7.3 you must:

要删除 Ver.7.3 中的 XCode 项目,您必须:

  • 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
  • 打开您要删除的项目
  • 从 Mac 程序的活动应用程序菜单中选择“窗口”选项。您可以找到的位置 - 文件、编辑、查看等。
  • 选择项目选项
  • 然后你会看到一个完整的项目列表
  • 突出显示要删除的那些 - Shift + 单击 >>> 单击
  • 然后右键单击并选择删除项目

回答by JubiAudio

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]

对于 Xcode Version 8.2 (8C38),您可以通过执行以下操作将项目(Xcode 中的项目名称、程序、数据等)一一删除:欢迎窗口]

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

启动 Xocde 并等待欢迎窗口出现。项目将显示在右侧(见下文) Xcode 欢迎窗口

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

右击要完全删除的项目,弹出一个弹出窗口【在文件夹中显示】;选择它在[Finder]中找出项目在哪里(见下文) 找到项目文件夹

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]

在 Finder 中右键单击项目文件夹,通过【获取信息】找到它的路径;使用信息窗口中的路径转到父文件夹,然后转到那里[找到项目文件夹路径][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.

右键单击项目文件夹(例如 DemoProject01)和项目文件(DemoProject01.xcodeproj)并选择 [Move to Trash] ;您将看到 (a) finder 中的文件夹被删除,并且 (b) Xcode 欢迎窗口的项目列表中的项目被删除。

回答by CShabolotova

For Xcode projects in version 11:

对于版本 11 中的 Xcode 项目:

  1. Open Xcode
  2. Click on File
  3. Open recent: Clear menu
  1. 打开 Xcode
  2. 点击文件
  3. 最近打开:清除菜单

It will remove all the projects that you have on your Xcode.

它将删除您在 Xcode 上的所有项目。