Closed reedshea closed 5 months ago
Deleting the .PrivacyInfo.xcprivacy
file in the local build SourcePackages
and re-running xcodebuild build
resulted in the removal of the Explicit dependency on target 'swift-crypto_Crypto' in project 'swift-crypto'
line.
https://github.com/apple/swift-crypto/commit/2adec617e6a5d82f69bf738b2d203f5fa319f183
This looks a lot like #231. Do you mind reading through it?
It does look like it's the same issue. In my case, I'm using GitHub Actions to build and deploy to TestFlight, using a provisioning profile stored as a GitHub Actions variable.
Adding a privacy manifest file to my app, as described here, had no effect.
Adding DEVELOPMENT_TEAM="<id>"
to the GitHub Actions workflow, as suggested by the error message and that issue #231, led to a different issue:
error: swift-crypto_Crypto does not support provisioning profiles. swift-crypto_Crypto does not support provisioning profiles, but provisioning profile [profile name] has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'swift-crypto_Crypto' from project 'swift-crypto')
Trying to set the provisioning profile to "Automatic" wasn't successful.
I haven't been very successful at trying to pin to v3.3.0 as a workaround; the xcodebuild -disableAutomaticPackageResolution
flag doesn't seem to be respected in my setup, although I expected it to (possible issue mentioned here).
Thanks in advance for any help & suggestions!
I'm going to suggest that you take this to the Apple Developer Forums. This appears to be an issue with the way Xcode handles packages with resources, but we do require them here.
No luck tracking down the root of the problem. But for posterity, in case someone runs into this or a similar issue in the future, the issue seems to be in using GitHub Actions to build, archive, sign, and push to TestFlight.
The previous setup followed the documented GitHub Actions Xcode setup: https://docs.github.com/en/actions/deployment/deploying-xcode-applications/installing-an-apple-certificate-on-macos-runners-for-xcode-development
Eliminating GitHub Actions in favor of Xcode Cloud allowed Xcode to be set to Automatically manage signing
, which resolved this problem. The xcodebuild
logs still show the extra lineβ Explicit dependency on target 'swift-crypto_Crypto' in project 'swift-crypto'
but the build works.
New Issue Checklist
main
branch)Expected behavior
I am using a library that has a dependency on
swift-crypto
.xcodebuild
started failing in CI/CD after an automatic dependency update toswift-crypto v3.4.0
. Expected behavior: the build should succeed. π This looks like it may be the same issue as #235 but I'm not sure.Actual behavior
The app builds locally. In CI/CD with GitHub Actions publishing to TestFlight, there is a build error:
error: Signing for "swift-crypto_Crypto" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'swift-crypto_Crypto' from project 'swift-crypto')
Steps to reproduce
In a brand-new Xcode project, add
swift-crypto
as a dependency, specifyingv3.3.0
. Then, runxcodebuild build
.Using `swift-crypto v3.3.0:
Using
swift-crypto v3.4.0
:Details
Terminal output from
xcodebuild build
usingswift-crypto v3.3.0
:Terminal output from
xcodebuild build
usingswift-crypto v3.4.0
: