Closed StefanCosminR closed 2 months ago
I couldn't reproduce this, and https://github.com/apple/swift-crypto/blob/main/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy
exists, so this is a bit odd.
We don't actually need the privacy manifests on Linux so we can exclude them from the package manifest (and we should do this) but I'd like to figure out why you're getting this error in case there's some other underlying issue.
Create an empty project under Ubuntu 22.04
How are you building this exactly, in a docker container using swift package manager? Or something else?
Maybe this is a SPM issue uncovered by my weird setup, or something I don't understand about linux. I have Ubuntu running in Parallels with a shared folder between the two (so Ubuntu sees this folder as a mounted drive). If I move the project to a local folder inside Ubuntu, it compiles fine, however it fails on the mounted drive. Maybe it's a general issue with the copy command of SPM
Yeah, this sounds very much like SwiftPM doesn't like your setup here. It should be possible to reproduce this quite easily without swift-crypto
here. Would you be able to open an issue against https://github.com/swiftlang/swift-package-manager?
As a workaround I'll update the package manifest so that these resources aren't added on Linux.
Great, thank you!
New Issue Checklist
main
branch)Expected behavior
I expect a project that uses swift-crypto as a dependency to build under Linux and Swift 6
Actual behavior
The build fails when trying to Copy PrivacyInfo.xcprivacy file
Steps to reproduce
If possible, minimal yet complete reproducer code (or URL to code)
Swift Crypto version/commit hash
81bee98e706aee68d39ed5996db069ef2b313d62