-
Notifications
You must be signed in to change notification settings - Fork 169
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
Can no longer build Swift-Crypto, from Swift-Certificates (X509) on Mac OS with the latest version (3.4.0) #231
Comments
#226 is the most likely source of your issues. Can you please use Feedback Assistant to report the problem? This shouldn't be causing breakages. What version of Xcode are you using? |
Build machine is Xcode 15.0.1 but tried 15.4 as well
I will use feedback assistant tomorrow first thing
Thanks
Sent from my iPhone XVI (Beta)
On 20 May 2024, at 17:44, Cory Benfield ***@***.***> wrote:
#226<#226> is the most likely source of your issues. Can you please use Feedback Assistant to report the problem? This shouldn't be causing breakages. What version of Xcode are you using?
—
Reply to this email directly, view it on GitHub<#231 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAI5OKY4Z4KFPV7IKY7G67LZDIR6FAVCNFSM6AAAAABIAAOEEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQHAYTMNBTGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Additional information... Copy of the local Package.swift
|
Yeah, I'm honestly not sure how this is supposed to work, but my gut instinct is that the addition of the empty privacy manifests is related. What surprises me is that we're not hearing more about it. Did you get that Feedback Assistant issue opened? |
Also, can you try two things for me?
|
I filled out the feedback assistant. |
Step 3 failed (as expected?) |
Yeah, that points the finger at step 3. Can you paste the Feedback Assistant number here? |
https://feedbackassistant.apple.com/feedback/13805266 As stated in the feedback, this fails with xcodebuild but, depending on which certificates are selected it appears to work in Xcode and hence that may be why it has not been reported earlier? However, like many others, all our release builds are don on DevOps Azure or GitHub actions so xcodebuild, with the correct imported certificates (ie manual code sign) is the default approach for us. |
@Deblanko can you provide your full |
This showed the issue: I'm not sure how it built a release on automatic (in X-Code) since I thought I had no valid certificates for that. However that would have been a build and not an install. (install just lets me extract various artefacts from the build in known locations) |
Can you try setting |
Thank you, that appears to solve the issue. |
I think the reason this used to work is that you previously didn't get any bundles. When we added a resource to this project, that started to produce a bundle, which needed to be signed. I have no idea why that flag was needed, that would be a question for the xcode team. But I'm glad you solved it! |
New Regression Checklist
Regression Information
3.4.0
3.3.0
Regression Description
Every since the release of 3.4.0 our automated builds are failing with errors like this:
.../SourcePackages/checkouts/swift-crypto/Package.swift: error: Signing for "swift-crypto_CCryptoBoringSSLShims" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'swift-crypto_CCryptoBoringSSLShims' from project 'swift-crypto')
.../SourcePackages/checkouts/swift-crypto/Package.swift: error: Signing for "swift-crypto__CryptoExtras" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'swift-crypto__CryptoExtras' from project 'swift-crypto')
etc.
We have code signing set to manual (but I have tried automatic too)
It is being included from Swift-Certificates so the default is to include the latest:
.package(url: "https://github.com/apple/swift-crypto.git", "2.5.0" ..< "4.0.0"),
This should not need to be signed until the main app has included the code and needs to be signed (like it did prior to 3.4.0)
I can workaround by getting a local copy of Swift-Cetrtificates and forcing the package to be < "3.4.0" but that does not seem a long term solution.
Your thoughts and comments are welcomed.
Swift Crypto version/commit hash
bc1c292
Environment
Stand in the root of the repo and run
./scripts/environment.sh
and paste the output belowThe text was updated successfully, but these errors were encountered: