Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix handling default spm resources #3295

Merged

Conversation

mstfy
Copy link
Collaborator

@mstfy mstfy commented Aug 13, 2021

Short Description: Fixes adding default resources to generated project from external spm dependency.

Long Description: When SPM used with xcode some of the resources automatically handled by xcode. There is no need to add them into Package.swift file as resource as long as they are inside the sources folder of the target. These files are interface builder files(xib, storyboard), core data models(xcdatamodeld, xcmappingmodel), asset catalogs (xcassets) and lproj files. In current dependencies implementation of tuist these files are are not getting included in the generated xcode project. This pr addresses this issue.

@danieleformichelli danieleformichelli marked this pull request as draft August 25, 2021 07:23
@danieleformichelli
Copy link
Collaborator

Converting to draft as it needs work from #3305 before being mergeable

@danieleformichelli
Copy link
Collaborator

@mstfy #3305 is ready now so you can go on 🙌

@mstfy mstfy force-pushed the dependencies-spm-default-resources-fix branch from ef2b805 to 1e41e68 Compare September 28, 2021 15:10
@danieleformichelli danieleformichelli marked this pull request as ready for review September 28, 2021 16:26
Copy link
Member

@fortmarek fortmarek left a comment

Choose a reason for hiding this comment

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

Do you know which package leverages this behavior? It'd be nice to add it to the acceptance tests as there if possible. But overall, looks good, thanks @mstfy!

@mstfy mstfy force-pushed the dependencies-spm-default-resources-fix branch from 521c5a7 to 28818bb Compare October 5, 2021 09:07
@mstfy mstfy force-pushed the dependencies-spm-default-resources-fix branch from 0b7c755 to c085799 Compare October 7, 2021 18:55
Copy link
Collaborator

@danieleformichelli danieleformichelli left a comment

Choose a reason for hiding this comment

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

@mstfy please add changelog entry 🙏

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.

None yet

4 participants