How can I delete derived data in Xcode 8?

前端 未结 16 979
醉梦人生
醉梦人生 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:37

    In Xcode 8, all the derived data is automatically cleaned. If you want to do it by hand, go to Locations tab from the Preferences, locate project's derived data folder, and delete files related to the project.

    In macOS 10.12 and later, Xcode cleans up stale derived data, precompiled headers, and module caches. (23282174)

    Xcode 8.0 Release Notes

    Credits to @charmingToad

    But from what I observed, the same behaviour is typical when using Xcode 8 on OS X 10.11.5/6

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

    Go to the root of the project using terminal and then paste the below mentioned line

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

    Once it is executed, you can verify by going to Xcode > Preference > Locations -> Tap arrow shows ["DeriveData"] end point.

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

    In your terminal :

    rm -rf ~/Library/Developer/Xcode/DerivedData
    
    0 讨论(0)
  • 2020-11-22 01:43

    Steps For Delete DerivedData:

    1. Open Finder
    2. From menu click on Go > Go to Folder
    3. Enter ~/Library/Developer/Xcode/DerivedData in textfield
    4. Click on Go button
    5. You will see the folders of your Xcode projects
    6. Delete the folders of projects, which you don't need.
    0 讨论(0)
  • 2020-11-22 01:49

    The simplest and fastest way is the following (if you have not changed the defaults folder for DerivedData).

    Open terminal and past the following:

    rm -rf ~/Library/Developer/Xcode/DerivedData
    
    0 讨论(0)
  • 2020-11-22 01:49

    Manual removal of derived data

    If you want to remove derived data manually just run:

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

    If you want to free up more disk space there's a few other directories you might want to clear out as well though.

    Automatic removal of Xcode generated files

    I have created a Bash script for removing all kinds of files generated by Xcode. Removing DerivedData content can be done by running:

    ./xcode-clean.sh -d
    

    More info at https://github.com/niklasberglund/xcode-clean.sh

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