-
Notifications
You must be signed in to change notification settings - Fork 294
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
Unable to archive project which use BraintreeDataCollector or PayPalDataCollector #576
Comments
Hi @JonathanDowning - thank you for opening this issue and providing detail. I am able to replicate the issue. We will keep you posted as we work on a fix. |
Hey @JonathanDowning - after some investigating, multiple sources can confirm this is an Xcode bug. A report has been filed for it here. Related issues: We'll keep you posted when we release a workaround. |
Hey @scannillo ! Thank you very much for your assiduousness in looking into this bug. I too suspected this was a bug related to binary dependencies in SPM. (Sigh!) A super thanks goes to you and the team for being receptive to my feedback :) Are you planning on waiting for this issue to be resolved with Xcode before shipping 5.0, or will this be a "known issue". (I understand if you're unable to comment on release plans here) |
We very much welcome and appreciate your feedback! Please keep it coming if you have more. As of right now our workaround is - if we expose the binary targets as product libraries and the app also includes them, we're able to archive successfully. |
Given my desire to rid our project of Carthage, this is agreeable. I'm hesitant to suggest waiting for an Xcode fix since who knows when this could be. (Murphy's law is Xcode 12.4 beta is released next week with a fix) |
This fix is released in 5.0.0-beta2. Just to summarize, you'll need to check the box for these two frameworks when using Braintree via SPM:
|
This has been fixed in version 5.0.0. See our Swift Package Manager guide for instructions and required workarounds. See our migration guide for steps to upgrade your integration. |
I do not believe this is fixed in 5.0.0. We're trying to use the iOS drop-in 9.0.2, which has braintree-ios 5.0.3 as a dependency, and we're running into |
I'am getting the same error on Xcode 12.5. I used a provided workaround and this, but no luck. Braintree 5.3.2 and BraintreeDropIn 9.0.2 |
@sestevens Can we have an update on how folks and work around this issue? |
Let's move this conversation over to #679. From what we can tell, the archive issues occurring now are specific to We're able to reproduce the archive issues intermittently, but cleaning and re-building seems to resolve them. We'll continue investigating and post any additional findings in #679. |
Integration Details (please complete the following information):
acf23311388bc6be10f9a1b7740c77fa3a42c1f5
Describe the bug
Xcode cannot archive
BraintreeDataCollector
orPayPalDataCollector
(or targets which depend on these).These targets depend on
xcframeworks
, I suspect this is not a coincidence.Xcode emits the following error for each target:
BraintreeDataCollector
:PayPalDataCollector
:To Reproduce
Steps to reproduce the behavior:
git checkout acf23311388bc6be10f9a1b7740c77fa3a42c1f5
(or pull the current master branch)open Package.swift
PayPalDataCollector
orBraintreeDataCollector
from the schemes dropdownExpected behavior
The project should archive successfully
Screenshots
The text was updated successfully, but these errors were encountered: