-
Notifications
You must be signed in to change notification settings - Fork 133
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
Shipping xcframework with multiple dependency manager #1438
Comments
Hey @mnabulsi92 👋. This issue is similar to #1402 and it looks you're experiencing the SPM limitations explained in #1402 (comment). We recommend using the workaround discovered by @akovalov (🍺) in there: #1402 (comment). |
Hi @ncreated , i tried the workaround in that commit but it didn't work i assume because there is no Framework generated when we use SPM and since we add it to the |
@mnabulsi92 So, we must better understand the setup that leads to this error, so we can reproduce it our side to have a closer look. Could you please describe the minimal example of your configuration? |
@mnabulsi92 have you tried to add |
We have our SDK where we link the DataDog frameworks as Not sure if this answers your question, If not can you please let me know which configuration you are referring to exactly. |
No i didn't, i will try it. but i think this refers to how the Thanks. |
Hi @ncreated, any updates? any more info required from my side ? |
Hey @mnabulsi92 👋. Sorry for delay and thanks for describing the framework setup. I more wonder on when is the |
Hi @ncreated, yes its from an example app that imports our framework using SPM and our framework depends on Datadog as it shows in the provided package.swift file. |
@mnabulsi92 Sadly, it seems you're struggling SPM limitations and this is not something we can solve in our SDK. The problem occurs after integrating your Please see this open proposal in SPM repo: swiftlang/swift-package-manager#4449 as it explains the limited constraints of dependencies in binary frameworks like yours. We also found this community thread where possible workarounds are mentioned: https://forums.swift.org/t/swiftpm-binary-target-with-sub-dependencies/40197. Unfortunately, there seems to be no good & first-class solution at this moment. I'll close this thread for now as there isn't anything actionable for us. Feel free to start another one if there is anything we can do that could help you. |
The issue
We have a
CustomFramework
where we support integration using cocoapods, carthage and SPM and we want to integrate Datadog v2.In cocoapods and carthage we don't have any issues but in SPM we are getting this run time error:
Library not loaded: @rpath/DatadogRUM.framework/DatadogRUM
We add DataDog frameworks to the
Frameworks and libraries
withDo not embed
optionOur Packge.swift file
Datadog SDK version:
2.1.1
Last working Datadog SDK version:
We didn't have SPM support before
Dependency Manager:
SPM
Xcode version:
Xcode 14.3.1
Swift version:
5.8.1
Deployment Target:
iOS 11
,iPhone
The text was updated successfully, but these errors were encountered: