-
Notifications
You must be signed in to change notification settings - Fork 129
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 use in ios (notification) extension #370
Comments
Hello @SimpleApp 👋. Thanks for reporting this issue. Indeed, there was a problem with
What was the reason of embedding |
The fix is available in |
Hi, for some reason, selecting "do not embed" makes the library disappear from the list and not link at all (even on the latest xcode 12.3) |
I found this https://forums.swift.org/t/is-this-an-xcode-bug-or-somehow-related-to-spm/33987 which is probably what happens here |
Hello @SimpleApp 👋. Thank you for digging into more details on the SPM 💪. We need to look closer into app extensions + SPM configuration with recent Xcode tooling - I put this topic high in our backlog, and we will investigate it soon. For now, linking through CocoaPods seems to be a good workaround - I hope it solves the problem for you 🙂. |
When using cocoapods, I can't build in the extension because you're using UIApplication.shared:
|
@amardeepranu this is fixed in |
ℹ️ we've recently found a new workaround for Swift Package Manager and lack of |
The issue
I'm trying to use datadog in both the app bundle and the notification extension bundle. I've tried two and encountered two different errors:
1/ using spm. I had to manually embed the Datadog library for the notification extension code to compile. That worked just fine, however, doing that triggered a bug when submitting to apple :
So, i tried using Cocoapods, and wrote "pod 'DatadogSDK' " in both the app and the extension targets.
This doesn't compile, because of a "UIApplication.shared" dependency in RUMDebugging.swift :
At this point i feel kind of stuck.. Did i miss something ?
Datadog SDK version:
1.4.0
Last working Datadog SDK version:
?
Dependency Manager:
CocoaPods & SwiftPM
Other toolset:
Xcode version:
12.2
Swift version:
5.x
Deployment Target:
ios 13.0
The text was updated successfully, but these errors were encountered: