question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Sentry/SentryTraceContext.h' file not found

See original GitHub issue

Build 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?

Steps to Reproduce

  1. Add use_frameworks! to podfile
  2. 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’

image

For now this requires to hold back either sentry-react-native < v4 or react-native-firebase < v15

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
hatem-72commented, Jul 11, 2022

I can confirm that running a project on IOS using both sentry-react-native and use_frameworks! fails with

▸ Compiling RNSentry.m

❌  /path-to-my-project/node_modules/@sentry/react-native/ios/RNSentry.m:11:9: 'Sentry/SentryTraceContext.h' file not found

#import <Sentry/SentryTraceContext.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0reactions
philipphofmanncommented, Jul 12, 2022

@brustolin, could you maybe open a PR to fix the code in RNSentry.m, please?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found