Delete `DerivedData` when running `skip upgrade` in an app project
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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