Skip to content

Crashes reported on iOS Prod build  #2993

@Gauravprakash

Description

@Gauravprakash

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

we have integrated Sentry in our App named 99acres to trace crashes and other data as well . It impacted our crash free users so with immediate effect we decided to remove from production let me share steps which I use to implement

Native IOS
In pod file: pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '8.5.0'

App Delegate file

In AppDelegate file a private func is defined which is getting called from did finish launching method , lets have a look on code snippet:

 private func traceSentry(){
   
       SentrySDK.start { options in
           options.dsn = "https://[email protected]/4505006327791616"
           
          // We recommend adjusting this value in production
           options.debug = true
           options.tracesSampleRate = 1.0
           options.profilesSampleRate = 1.0
           options.appHangTimeoutInterval = 1
           options.enableSwizzling = true
           options.enablePreWarmedAppStartTracing = true
           options.attachScreenshot = true
           options.attachViewHierarchy = true
           if #available(iOS 15.0, *) {
               options.enableMetricKit = true
           } else {
               // Fallback on earlier versions
           }
           
       }
       let error = NSError(domain: "com.99acres.com", code: 1, userInfo: nil)
       SentrySDK.capture(error: error)
   }

React Native Side

in Package.json -> "@sentry/react-native": "^5.3.1"

while in App.js

import * as Sentry from "@sentry/react-native";

Sentry.init({
  dsn: "https://[email protected]/6152887",
  autoInitializeNativeSdk:false,
  enableNative:false,
});

Expected Result

It should be Crash free , please do suggest if any thing goes wrong

Actual Result

Screenshot 2023-05-03 at 11 09 24 AM

Product Area

Performance

Link

No response

DSN

https://[email protected]/4505006327791616

Version

8.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions