Skip to content
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

iOS crash on launch after upgrade to 5.3.0 #2956

Closed
5 of 11 tasks
bpeltonc opened this issue Apr 5, 2023 · 6 comments
Closed
5 of 11 tasks

iOS crash on launch after upgrade to 5.3.0 #2956

bpeltonc opened this issue Apr 5, 2023 · 6 comments

Comments

@bpeltonc
Copy link

bpeltonc commented Apr 5, 2023

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.3.0

react-native version: 0.66.3

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

Configuration:

(@sentry/react-native)

Sentry.init({
      dsn: SENTRY_DSN,
      environment: __DEV__ ? 'development' : 'production',
      enableAutoSessionTracking: AUTO_SESSION_TRACKING,
      sessionTrackingIntervalMillis: SESSION_TRACKING_INTERVAL_MS,
      integrations: [
        new Sentry.ReactNativeTracing({
          tracingOrigins: ORIGINS,
          routingInstrumentation,
        }),
      ],
      tracesSampleRate: SAMPLE_RATE,
    });
});

I have following issue:

After following the migration guide to upgrade my previous 3.1.x version to 5.3.0, iOS builds are crashing both in debug and release builds. Android is working fine, it appears. With a debug build, I get a log in my console as follows: "Native Client is not available, can't start on native." I tried including enableNative: false in my config, but still got the same result.

Steps to reproduce:

  • Upgrade from 3.1.1 to 5.3.0
  • Create debug build

Actual result:

Crash on app start

Expected result:

App works with no crash

@krystofwoldrich
Copy link
Member

Hi,
could you check if sentry CocoaPod is installed correctly? You should see RNSentry (5.3.0) and Sentry/HybridSDK (8.3.3) in your Podfile.lock.

Do you see any other errors, running the app directly from Xcode could help to see more iOS logs and stack trace of the crash.

Just for context, I'm linking the original issue and the reason why you are upgrading.

@krystofwoldrich
Copy link
Member

@bpeltonc Did you manage to get your project working? Or still, facing the same issue?

@bpeltonc
Copy link
Author

@krystofwoldrich Unfortunately, the project I have inherited has some bigger build issues that prevent me from building in XCode (I build using 'react-native' and fastlane cli tools only). It might be best to table this issue until I get my project fully upgraded and these larger issues sorted out.

@krystofwoldrich
Copy link
Member

@bpeltonc Okay, thank you for the update, I will close this for now, and when you get back to it, comment here and we can reopen it.

@bpeltonc
Copy link
Author

@krystofwoldrich
I got everything working correctly in my project and again attempted the upgrade from 4.15.x to 5.3.1 and have the same iOS error as I reported when opening this issue.

I have confirmed there are no Sentry pods in my podfile.lock after running npx pod-install with @sentry/react-native resolved to 5.3.1 in my yarn.lock file.

@krystofwoldrich
Copy link
Member

We have found out what the issue was, and here is a fix. #2980

When it's released Sentry will be in the Pods. If you want to use the v5 now you can link RNSentry manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants