-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SPM conflict SwiftProtobuf #2088
Comments
Yes, because wallet core is a binary framework, it needs |
@hewigovens This doesn't really work around the issue since Firebase includes swift-protobuf and statically links the binary to the resulting app bundle, which means the To solve this, we would likely need to allow compilation of wallet-core via SPM rather than as a binary framework so that it can include the same versioned swift-protobuf dependency |
@oliveratkinson-bc it would be great |
@oliveratkinson-bc I agree with you, but wallet core needs special build steps and SPM seems limited (unlike CocoaPods, easy to add scripts) cc @Milerius |
It's worth noting that SPM has got some upgrades as of 5.7, one of which is "Package Manager Plugins" that should aid in the ability to script elements of the build pipeline |
this article says it's available already in 5.6 https://theswiftdev.com/beginners-guide-to-swift-package-manager-command-plugins |
@nerzh yes, but it had issues, became usable in 5.7 |
Hi @oliveratkinson-bc ! |
🙄 |
@nerzh @oliveratkinson-bc @EvgenV |
@MaksymVereshchaka I have not found a workaround for this issue |
no, I don’t understand why the package was called that at all. You could also call the wallet not Trustwallet but Googlewallet, why not ? 😀 |
@nerzh @oliveratkinson-bc were you ever able to find a workaround to this? |
@tysonwil @nerzh @oliveratkinson-bc take a look at this PR. Please give a thumb up if this fix your issue. |
Sorry for my english
Describe the bug
Google FireBase has SwiftProtobuf as a dependency:
.package(
name: "SwiftProtobuf",
url: "https://github.com/apple/swift-protobuf.git",
"1.15.0" ..< "2.0.0"
),
but wallet-core has SwiftProtobuf as a dependency too:
.binaryTarget(
name: "SwiftProtobuf",
url: "https://github.com/trustwallet/wallet-core/releases/download/2.6.36/SwiftProtobuf.xcframework.zip",
checksum: "40518a795e841bbd2c7e1f7019357b8e09b321a9c1ea264b0819f85575ac04c2"
)
Because you have a binary target, this causes a name conflict with SwiftProtobuf.
Please, tell me what to do with it, thanks
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No conflict with SwiftProtobuf
The text was updated successfully, but these errors were encountered: