Skip to content
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

Datadog breaks SwiftUI Previews, at least when using SPM to integrate DD #1027

Closed
mcmurrym opened this issue Oct 19, 2022 · 5 comments
Closed
Assignees

Comments

@mcmurrym
Copy link

This has been happening in several version of Xcode, including all versions of Xcode 14 and using the latest release of DD iOS sdk 1.21.1

When launching a swiftui preview window, any preview fails to load and the diagnostics shows this error


SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x0000600020c647e0):'DatadogStatic'>)
@Kaspik
Copy link

Kaspik commented Oct 20, 2022

Possibly related to #746 and #624 - what library type do you use? It should be .package(url: "https://github.com/DataDog/dd-sdk-ios.git", from: "1.12.0") + .product(name: "Datadog", package: "dd-sdk-ios").

@ncreated ncreated self-assigned this Oct 24, 2022
@ncreated
Copy link
Member

@mcmurrym - we've been going through this issue in the past and it should be fixed in 1.12.0 by #949. Could it be a problem of your Package.swift configuration like @Kaspik suggests?

@ncreated ncreated added the awaiting response Waiting for response / confirmation from the reporter label Oct 24, 2022
@mschinis
Copy link

I'm seeing the same issue on 1.12.1 and Xcode 14.0 and Xcode 14.1 RC. I'm using the DatadogStatic library via Swift Package Manager

@Kaspik
Copy link

Kaspik commented Oct 25, 2022

You should not be using any specific type (aka Static) to make it work.

@mschinis
Copy link

🤔 I believe I had installed DatadogStatic due to another issue, I had read on Github. I installed the normal Datadog library and everything works now for me, thank you!

@maxep maxep removed the awaiting response Waiting for response / confirmation from the reporter label Nov 4, 2022
@maxep maxep closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants