-
Notifications
You must be signed in to change notification settings - Fork 14
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
BUILD_LIBRARY_FOR_DISTRIBUTION causes Build failure for EudiWalletKit integration in Dynamic Library #117
Comments
Could you advise on an alternative integration method that allows incorporating EudiWalletKit without using Swift Package Manager (SPM)? Our goal is to ensure that the source code of our SDK remains convenient for our clients while keeping EudiWalletKit fully functional (on our sdk). |
Thank you very much for your response, @phisakel. However, when I include the EUDI SDK in an empty Xcode project with a Framework target and run the following command:
I encounter this error: The following build commands failed: This occurs while archiving the project TestXCFRAMEWORK with the scheme MyFramework. Thank you very much for your time! |
@kimera Are you compiling for Swift 6? |
Dear @phisakel, I tried with xCode 15.x / 16.0 with Swift 5/6. I would greatly appreciate it if you could attempt creating an XCFramework of your library yourself or embedding it into another XCFramework just to figure out the feasibility. Be sure to try with BUILD_LIBRARY_FOR_DISTRIBUTION enabled Thanks a lot for your time. |
@kimera84 I think that the @_implementationOnly attribute will help with the XCFramework issue |
Thank @phisakel, already tried some time ago with [@_implementationOnly]. Not working. My command
Result '** BUILD FAILED ** The following build commands failed: |
I understand that this is a sensitive topic, @phisakel. After my attempts and following this discussion: https://forums.swift.org/t/how-to-build-swift-package-as-xcframework/41414, I am quite convinced that it's actually not possible to encapsulate your SDK within another. Our goal is to wrap everything and create our own, limiting the visibility of the implementations. |
Hello,
I'm encountering an issue when integrating EudiWalletKit (v0.6.9) into an Xcode project that needs to be distributed as an XCFramework.
My project setup:
Xcode Version: 16
Project Type: Dynamic library (intended to be built and distributed as an XCFramework)
Integration Method: Swift Package Manager (SPM) dependency for EudiWalletKit
Problem
When I set BUILD_LIBRARY_FOR_DISTRIBUTION to YES in my project, the build fails with the following error:
SwiftVerifyEmittedModuleInterface normal arm64 Verifying emitted module interface WalletSDK.swiftinterface
After setting BUILD_LIBRARY_FOR_DISTRIBUTION to NO, the build succeeds, but this is not an ideal solution as I need to ensure binary compatibility for the distributed XCFramework.
The text was updated successfully, but these errors were encountered: