How can I delete derived data in Xcode 8?

前端 未结 16 980
醉梦人生
醉梦人生 2020-11-22 01:19

The projects page seems to be disappeared from Xcode 8. I used this page for deleting the derived data.

Any idea how can I delete derived data from within Xcode 8?

相关标签:
16条回答
  • 2020-11-22 01:50

    Select Xcode and Follow 4 steps that highlighted in photo and remove derived data then restart your project.

    0 讨论(0)
  • 2020-11-22 01:51

    Method 1:

    • Close Xcode
    • Open Terminal and enter this command

      rm -rf ~/Library/Developer/Xcode/DerivedData
      

    Method 2:

    • Click on Xcode menu
    • Go to Preference
    • Select Locations (as shown in image)
    • Click on the arrow below the Derived Data (as shown in image).

    It will bring you to the location of derived data and you can just delete it manually.

    0 讨论(0)
  • 2020-11-22 01:51

    I've created a bash command. Configure it with 3 simple steps. then in the terminal just type cleandd https://github.com/Salarsoleimani/Usefulscripts

    0 讨论(0)
  • 2020-11-22 01:52

    Many different solutions for this problem. Most of them work as well. Another shortcut seems to be added as well:

    Shift + alt + command ⌘ + K

    Will ask you to:

    Are you sure you want to clean the build folder for “MyProject”?

    This will delete all of the products and intermediate files in the build folder.

    In most cases this would be enough to solve your problems.

    UPDATE

    As of Xcode 9 you'll be able to access the Derived Data folder by navigating to

    File -> Project Settings

    or if you use a Workspace:

    File -> Workspace Settings

    And press the arrow behind the path:

    0 讨论(0)
  • 2020-11-22 01:52

    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] (see below)

    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.

    0 讨论(0)
  • 2020-11-22 01:55

    (Working in Xcode 11)

    You can go to File > Workspace Settings if you are in a workspace environment or File > Project Settings for a regular project environment.

    Then click over the little grey arrow under Derived data section and select your project folder to delete it.

    0 讨论(0)
提交回复
热议问题