Closed
Description
openedon Jan 14, 2021
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 :
- ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'Datadog' under the iOS application
- ERROR ITMS-90205: "Invalid Bundle. The bundle at … /Plugins/NotificationServiceExt.appex' contains disallowed nested bundles.
- ERROR ITMS-90206: "Invalid Bundle. The bundle at '…/PlugIns/NotificationServiceExt.appex' contains disallowed file 'Frameworks'."
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 :
- 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment