How to use Derived data in Xcode

Issue #543

Workspace

Workspace has its own DerivedData folder

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DerivedData
ModuleCache.noindex
workspace_name
Build
Products
Debug-iphonesimulator
Cat
Dog
Dog2
Index
Info.plist
Logs
Build
Debug
Install
Issues
Package
Test
LogStoreManifest.plist
Test-scheme_name-2019.12.15_21-08-32-+0100.xcresult
scm.plist
SourcePackages
TextIndex

Note that workspace always needs a scheme to work

1
xcodebuild: error: If you specify a workspace then you must also specify a scheme.  Use -list to see the schemes in this workspace.

Project

Project has its own DerivedData folder. If run a scheme within workspace, we see build folder for workspace. But if we open a project and run a scheme within project, we see build folder for that project.

The structure is the same, with project_name instead workspace_name

Comments