When building my app, I get the following warning.
no rule to process file 'ProgressHUD/Sources/PrivacyInfo.xcprivacy' of type 'file' for architecture 'x86_64'
If you change the resource rule in the manifest to process you get a more informative warning.
Invalid Resource 'PrivacyInfo.xcprivacy': File not found.
The actual issue seemed to be that the path is incorrect. However, after changing the path to Sources/PrivacyInfo.xcprivacy we get an error now instead of a warning.
duplicate rule found for file at 'ProgressHUD/Sources/PrivacyInfo.xcprivacy'
What's going on here is that the different path parameters for a target interact in unintuitive ways when it comes to resolving paths in a package. I don't want to write it all out here (I should put it in a blog post instead), but the bottom line is that you want to specify the complete path to the target sources in the path parameter, and then specify a process rule for the primary manifest with a path relative to the sources directory.
This PR addresses this issue, and also prevents some unintended files from the app directory from being included in the library.
When building my app, I get the following warning.
no rule to process file 'ProgressHUD/Sources/PrivacyInfo.xcprivacy' of type 'file' for architecture 'x86_64'
If you change the resource rule in the manifest to
process
you get a more informative warning.Invalid Resource 'PrivacyInfo.xcprivacy': File not found.
The actual issue seemed to be that the path is incorrect. However, after changing the path to
Sources/PrivacyInfo.xcprivacy
we get an error now instead of a warning.duplicate rule found for file at 'ProgressHUD/Sources/PrivacyInfo.xcprivacy'
What's going on here is that the different path parameters for a target interact in unintuitive ways when it comes to resolving paths in a package. I don't want to write it all out here (I should put it in a blog post instead), but the bottom line is that you want to specify the complete path to the target sources in the
path
parameter, and then specify aprocess
rule for the primary manifest with a path relative to the sources directory.This PR addresses this issue, and also prevents some unintended files from the
app
directory from being included in the library.Output of
swift package describe
before:After: