'Sentry/SentryTraceContext.h' file not found
See original GitHub issueBuild of React Native App fails after upgrading sentry-react-native to v4.x.x.
react-native-firebase > v15 requires use_frameworks!
in podfile:
https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md#breaking-changes
Seems like sentry-react-native has problems handling dynamic libraries in v4. There is an open PR on sentry-cocoa for this: https://github.com/getsentry/sentry-cocoa/pull/1726
Environment
How do you use Sentry?
- Sentry SaaS (sentry.io)
Which SDK and version?
- @sentry/react-native: v4.1.0
Steps to Reproduce
- Add
use_frameworks!
to podfile - Try to build React Native App
Expected Result
Build should complete.
Actual Result
Error: ‘Sentry/SentryTraceContext.h’ file not found in ‘Development Pods/RNSentry/RNSentry.m’
For now this requires to hold back either sentry-react-native < v4 or react-native-firebase < v15
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:11 (9 by maintainers)
Top Results From Across the Web
'Sentry/Sentry.h' file not found #1078 - GitHub
I have following issue: 'Sentry/Sentry.h' file not found. Steps to reproduce: yarn add @sentry/react-native.
Read more >Connect Services for iOS - Sentry Documentation
Learn how to connect backend and frontend transactions.
Read more >@sentry/tracing | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Changelog - CocoaPods
Sentry -trace header incorrectly assigned to http requests (#2167); Use the component ... Properly sanitize the event context and SDK information (#1943) ...
Read more >OpenTelemetry Support - Sentry Developer Documentation
Linking of errors and transactions via trace context. Propagation of sentry-trace and baggage headers (this is done via the SentryPropagator); Span/Trace ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm that running a project on IOS using both
sentry-react-native
anduse_frameworks!
fails with@brustolin, could you maybe open a PR to fix the code in
RNSentry.m
, please?