-
-
Notifications
You must be signed in to change notification settings - Fork 518
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
fix handling default spm resources #3295
Conversation
Sources/TuistDependencies/SwiftPackageManager/Utils/PackageInfoMapper.swift
Outdated
Show resolved
Hide resolved
Sources/TuistDependencies/SwiftPackageManager/Utils/PackageInfoMapper.swift
Outdated
Show resolved
Hide resolved
Sources/TuistDependencies/SwiftPackageManager/Utils/PackageInfoMapper.swift
Outdated
Show resolved
Hide resolved
Converting to draft as it needs work from #3305 before being mergeable |
ef2b805
to
1e41e68
Compare
Sources/TuistDependencies/SwiftPackageManager/Utils/PackageInfoMapper.swift
Outdated
Show resolved
Hide resolved
Sources/TuistDependencies/SwiftPackageManager/Utils/PackageInfoMapper.swift
Outdated
Show resolved
Hide resolved
Sources/TuistDependenciesTesting/DependenciesGraph/DependenciesGraph+TestData.swift
Outdated
Show resolved
Hide resolved
Tests/TuistDependenciesTests/SwiftPackageManager/Utils/PackageInfoMapperTests.swift
Show resolved
Hide resolved
Tests/TuistDependenciesTests/SwiftPackageManager/Utils/PackageInfoMapperTests.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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!
Sources/TuistDependencies/SwiftPackageManager/Utils/PackageInfoMapper.swift
Show resolved
Hide resolved
521c5a7
to
28818bb
Compare
0b7c755
to
c085799
Compare
There was a problem hiding this 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 🙏
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.