You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the attached package, the resources inside the "Resources" directory is silently ignored even though it's specified in the manifest. The desired layout it this:
But it seems that SwiftPM ignores this (silently) because the specified Resources directory isn't inside the target directory.
A workaround is to make the target directory ".", meaning the package directory, but then everything that's not the target (including a README.md at the top level and a Tests directory, etc) would have to be manually excluded.
What's the best way to achieve such a single-target layout?
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
SwiftPM 5.5 and also mainline SwiftPM.
Additional Detail from JIRA
md5: 9d28afc66aaf701c9c7d33a85b3de538
Issue Description:
In the attached package, the resources inside the "Resources" directory is silently ignored even though it's specified in the manifest. The desired layout it this:
{{ MyLibrary}}
{{ +– Package.swift}}
{{ +– Resources}}
{{ | +– CGAPalette.png}}
{{ +– Sources}}
{{ +– MyLibrary.swift}}
and the manifest has:
{{ .target(}}
{{ name: "MyLibrary",}}
{{ path: "Sources",}}
{{ resources: [ .process("../Resources") ]}}
)
But it seems that SwiftPM ignores this (silently) because the specified Resources directory isn't inside the target directory.
A workaround is to make the target directory ".", meaning the package directory, but then everything that's not the target (including a README.md at the top level and a Tests directory, etc) would have to be manually excluded.
What's the best way to achieve such a single-target layout?
The text was updated successfully, but these errors were encountered: