skiptools / skiptools/skip

Delete `DerivedData` when running `skip upgrade` in an app project

Open
#672 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement project
Dominant language
Swift
Stars
3.2k
Forks
106
Avg merge
6d 13h
Merged PRs (30d)
1

Description

In a generated app project, there's a Project.workspace in the root directory. We can run xcodebuild -showBuildSettings to get the BUILD_DIR, e.g. ~/Library/Developer/Xcode/DerivedData/Project-bcckvvgkjwbdsiaioaqmdasetcac/Build/Products. Based on that, we can and should delete the entire Project-bcckvvgkjwbdsiaioaqmdasetcac folder, especially including its SourcePackages folder. Then, we can run xcodebuild -resolvePackageDependencies to fetch it again.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the skip upgrade entry point for generated app projects and inspect how the root Project.workspace is handled. Use xcodebuild -showBuildSettings to identify BUILD_DIR, then verify that the enclosing DerivedData project folder and its SourcePackages are removed before xcodebuild -resolvePackageDependencies runs. Done means dependencies are freshly resolved during skip upgrade.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
build-system, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.