Skip to content

Conversation

@fortmarek
Copy link
Member

@fortmarek fortmarek commented Feb 17, 2025

See the PR in tuist for more context: tuist/tuist#7323

Copy link
Member

@cschmatzler cschmatzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between source and resource? 😄

@fortmarek
Copy link
Member Author

What's the difference between source and resource? 😄

Tuist uses the distinction to choose whether a file will be included in the Compile sources build phase or in the Copy bundle resources phase:
image

The distinction is then used by Xcode – resources are copied into the final app bundle, so they can be accessed at runtime whereas sources are compiled, so they can be used by the build system at the compilation time.

The core data model itself is handled a bit differently as explained here: https://github.com/tuist/tuist/blob/main/Sources/TuistGenerator/Generator/BuildPhaseGenerator.swift#L375-L386

@fortmarek fortmarek merged commit 33d4b03 into main Feb 17, 2025
8 checks passed
@fortmarek fortmarek deleted the fix/model-extension branch February 17, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants