Open anuragajwani opened 3 weeks ago
Hi @anuragajwani 👋
I hope you don't mind that I reformatted your report.
I'm not able to reproduce the issue using the following project: OTelCarthage.zip Could you please provide a sample project that replicate the crash? What you describe is very similar to #1509 so there might be an issue re. the minimum target.
I don't see any configuration of DatadogTrace
in your snippet, so I wondering if you need to add OpenTelemetryApi
as a dependency.
Hi @anuragajwani, reported issue: https://github.com/DataDog/dd-sdk-ios/issues/1875 I made a mistake, I'm using SDK ver 2.11.0 and crash is still happening.
Hi @anuragajwani 👋
I hope you don't mind that I reformatted your report.
I'm not able to reproduce the issue using the following project: OTelCarthage.zip Could you please provide a sample project that replicate the crash? What you describe is very similar to #1509 so there might be an issue re. the minimum target.
I don't see any configuration of
DatadogTrace
in your snippet, so I wondering if you need to addOpenTelemetryApi
as a dependency.I hope you don't mind that I reformatted your report.
Yes no worries fine with that.
so I wondering if you need to add
OpenTelemetryApi
This seems to be only needed in 2.12.0. However we experienced the issue in 2.11.0 too where there doesn't seem to be OpenTelemetryApi
.
I'll create a sample project. See if I can reproduce this. However I will have to test this next week as I don't have a device on iOS 16.x.x. I will need to re-borrow the device from a colleague when I see them next week.
Hey @anuragajwani & @JonathanFuentesF 👋
We have acknowledge the issue by running on a physical iOS 16 device. The problem is that our SDK still target iOS 11 as a minimum target, by running carthage with --no-use-binaries
you are rebuilding the SDK with Xcode 15 and face the same crash as described in #1509.
As a workaround while we work on a fix, you can link our prebuilt xcframeworks with carthage update --platform iOS --use-xcframeworks
. Please let us know if that works for you, sorry for the inconvenience.
@maxep Thanks for sharing, in my case I'm using cocoa pods what would be the equivalent fix? thanks
@JonathanFuentesF For CocoaPods, you can follow the suggestion in https://github.com/DataDog/dd-sdk-ios/issues/1509#issuecomment-1766134828
Thanks for looking into it.
As a workaround while we work on a fix, you can link our prebuilt xcframeworks with carthage update --platform iOS --use-xcframeworks
Currently we are using the xcframework published on the release tab as a workaround. However we would like to recompile datadog with the current xcode version that we are using.
Stack trace
Reproduction steps
Tech Stack:
Add the following to the Carfile:
Run
carthage update --platform iOS --use-xcframeworks --no-use-binaries
.Add binaries of DataDog and OpenTelemetryApi to app.
Initialise DataDog on launch, here is our config:
Run app on physical device running iOS 16.x.x
See it crash on launch
Volume
100% on iOS 16.x.x
Affected SDK versions
2.11.0, 2.12.0
Latest working SDK version
2.11.0 using GH release binary
Does the crash manifest in the latest SDK version?
Yes
Deployment Target
16.0
Device Information
All affected crashes were reported only on iOS 16.x.x only when built through Carthage. Same version of DD did not crash when using the binary/xcframework provided in GH releases tab.
Other relevant information
No response